BuildSystem: Don't hardcode partition UUID

That was dumb :D I can just read the UUID parted assigned...
This commit is contained in:
2024-11-21 20:37:42 +02:00
parent 865061b492
commit 15c55b8c7d
6 changed files with 53 additions and 48 deletions

View File

@@ -46,15 +46,6 @@ 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