BuildSystem: Make root partition UUID fixed

This allows specifying root as UUID which makes booting nicer experience
on real hardware
This commit is contained in:
2024-11-21 17:59:38 +02:00
parent 8054f6c618
commit 96a5ba0ed3
5 changed files with 25 additions and 14 deletions

View File

@@ -46,6 +46,15 @@ else
mkpart root ext2 2M 100%
fi
fdisk "$BANAN_DISK_IMAGE_PATH" >/dev/null << EOF
x
u
2
$BANAN_ROOT_PART_UUID
r
w
EOF
# create loop device
LOOP_DEV=$(sudo losetup --show -fP "$BANAN_DISK_IMAGE_PATH" || exit 1 )
PARTITION1=${LOOP_DEV}p1