shrink partitions
This commit is contained in:
parent
6f29b638e9
commit
15709fe5d7
@ -54,8 +54,8 @@ EOF
|
||||
|
||||
losetup -d "${LOOPBACK_02}"
|
||||
losetup -d "${LOOPBACK_01}"
|
||||
fdisk -l "${NEW_IMAGE_NAME}"
|
||||
fdisk -l "${IMAGE_NAME}"
|
||||
fdisk -l "${NEW_IMAGE_NAME}"
|
||||
mv "${NEW_IMAGE_NAME}" "${IMAGE_NAME}"
|
||||
sync; sync; sync; sync;
|
||||
sleep 10
|
||||
|
@ -6,10 +6,10 @@ clearpart --drives=sda --disklabel=gpt --all
|
||||
|
||||
# Create partitions
|
||||
# The '--size' option takes MB, not MiB
|
||||
# 268 MB = 0.25 GiB
|
||||
# 1072 MB = 1.00 GiB
|
||||
# 2144 MB = 2.00 GiB
|
||||
# 134 MB = 128 MiB
|
||||
# 536 MB = 512 MiB
|
||||
# 2146 MB = 2.00 GiB
|
||||
# Keep /boot formatted as ext4 since that's what U-Boot can read
|
||||
part /boot/efi --asprimary --ondisk=sda --size=268 --label=rockyefi --fstype=efi
|
||||
part /boot --asprimary --ondisk=sda --size=1072 --label=rockyboot --fstype=ext4
|
||||
part / --asprimary --ondisk=sda --size=2144 --label=rockyroot --fstype=ext4
|
||||
part /boot/efi --asprimary --ondisk=sda --size=134 --label=rockyefi --fstype=efi
|
||||
part /boot --asprimary --ondisk=sda --size=536 --label=rockyboot --fstype=ext4
|
||||
part / --asprimary --ondisk=sda --size=2146 --label=rockyroot --fstype=ext4
|
||||
|
Loading…
Reference in New Issue
Block a user