Skip to content

Commit

Permalink
Update create-seperated-image.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingfate authored Sep 20, 2023
1 parent e9cf579 commit 359fe56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions create-seperated-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ rootfs_end_sector=$(gdisk -l ./${image_name}|grep rootfs|awk '{print $3}')
rm esp*.img rootfs*.img ||true
dd if=./${image_name} skip=${efi_start_sector} count=$((${efi_end_sector} - ${efi_start_sector})) of=esp.img
dd if=./${image_name} skip=${rootfs_start_sector} count=$((${rootfs_end_sector} - ${rootfs_start_sector})) of=rootfs.img
rm ${image_name}

old_rootfs_image=rootfs.img
old_rootfs_image_mount_dir=rootfs
Expand Down

0 comments on commit 359fe56

Please sign in to comment.