grub: shrink partition 2

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-10-25 20:20:11 +02:00
parent 1d13466f83
commit bce7d47e4a

View File

@ -30,7 +30,7 @@ popd
rm -f grub.img rm -f grub.img
dd if=/dev/zero of=grub.img bs=1M seek=1024 count=0 dd if=/dev/zero of=grub.img bs=1M seek=1024 count=0
echo -e "n\np\n1\n\n+50M\nn\np\n2\n\n+100M\nn\np\n3\n\n\na\n1\nw\nq\n" | fdisk grub.img echo -e "n\np\n1\n\n+50M\nn\np\n2\n\n+50M\nn\np\n3\n\n\na\n1\nw\nq\n" | fdisk grub.img
fdisk -l grub.img fdisk -l grub.img
LOOPX=$(sudo losetup -f) LOOPX=$(sudo losetup -f)