test: mark partition bootable

Make test suite partition bootable so nspawn can use the image directly.
Useful for local testing.

https://systemd.io/DISCOVERABLE_PARTITIONS/
This commit is contained in:
Ludwig Nussel 2021-12-27 10:34:52 +01:00 committed by Frantisek Sumsal
parent d39d3696c0
commit b13a8b5b37

View file

@ -1238,7 +1238,7 @@ create_empty_image() {
LOOPDEV=$(losetup --show -P -f "$IMAGE_PUBLIC")
[ -b "$LOOPDEV" ] || return 1
sfdisk "$LOOPDEV" <<EOF
,$((size - 50))M
,$((size - 50))M,L,*
,
EOF