From 15709fe5d7bb9d858f2b7ade7a1ae190b68a2857 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Tue, 17 Oct 2023 13:18:09 +0530 Subject: [PATCH] shrink partitions --- create-image.sh | 2 +- includes/disk-layout.ksi | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/create-image.sh b/create-image.sh index ae2b53a..02884f0 100755 --- a/create-image.sh +++ b/create-image.sh @@ -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 diff --git a/includes/disk-layout.ksi b/includes/disk-layout.ksi index c3fed5c..e5afed4 100644 --- a/includes/disk-layout.ksi +++ b/includes/disk-layout.ksi @@ -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