shrink partitions

This commit is contained in:
Pratham Patel 2023-10-17 13:18:09 +05:30
parent 6f29b638e9
commit 15709fe5d7
No known key found for this signature in database
2 changed files with 7 additions and 7 deletions

View File

@ -54,8 +54,8 @@ EOF
losetup -d "${LOOPBACK_02}" losetup -d "${LOOPBACK_02}"
losetup -d "${LOOPBACK_01}" losetup -d "${LOOPBACK_01}"
fdisk -l "${NEW_IMAGE_NAME}"
fdisk -l "${IMAGE_NAME}" fdisk -l "${IMAGE_NAME}"
fdisk -l "${NEW_IMAGE_NAME}"
mv "${NEW_IMAGE_NAME}" "${IMAGE_NAME}" mv "${NEW_IMAGE_NAME}" "${IMAGE_NAME}"
sync; sync; sync; sync; sync; sync; sync; sync;
sleep 10 sleep 10

View File

@ -6,10 +6,10 @@ clearpart --drives=sda --disklabel=gpt --all
# Create partitions # Create partitions
# The '--size' option takes MB, not MiB # The '--size' option takes MB, not MiB
# 268 MB = 0.25 GiB # 134 MB = 128 MiB
# 1072 MB = 1.00 GiB # 536 MB = 512 MiB
# 2144 MB = 2.00 GiB # 2146 MB = 2.00 GiB
# Keep /boot formatted as ext4 since that's what U-Boot can read # 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/efi --asprimary --ondisk=sda --size=134 --label=rockyefi --fstype=efi
part /boot --asprimary --ondisk=sda --size=1072 --label=rockyboot --fstype=ext4 part /boot --asprimary --ondisk=sda --size=536 --label=rockyboot --fstype=ext4
part / --asprimary --ondisk=sda --size=2144 --label=rockyroot --fstype=ext4 part / --asprimary --ondisk=sda --size=2146 --label=rockyroot --fstype=ext4