]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: mark partition bootable
authorLudwig Nussel <ludwig.nussel@suse.de>
Mon, 27 Dec 2021 09:34:52 +0000 (10:34 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 29 Dec 2021 19:23:26 +0000 (19:23 +0000)
Make test suite partition bootable so nspawn can use the image directly.
Useful for local testing.

https://systemd.io/DISCOVERABLE_PARTITIONS/

test/test-functions

index 95d37d09d59979a9a6ad92106bbd3d5b07ca7ba6..ba18a0ea2d5359e241a1f7b29cfcca8c3e456e60 100644 (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