fixed boot partition

This commit is contained in:
Sohrab Behdani 2025-03-02 17:15:50 +03:30 committed by GitHub
parent e3a37949d0
commit 01a2d88865
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,8 +65,8 @@ loopdev=$(losetup --find --show "${image}")
echo "==> Partitioning image..."
parted --script "${loopdev}" mklabel msdos
parted --script "${loopdev}" mkpart primary fat32 0% 200M
parted --script "${loopdev}" mkpart primary ext4 200M 100%
parted --script "${loopdev}" mkpart primary fat32 0% 1024M
parted --script "${loopdev}" mkpart primary ext4 1024M 100%
echo "==> Formatting image..."
bootdev=$(ls "${loopdev}"*1)