]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(DMSQUASH): fix do_live_overlay not being called
authorNadzeya Hutsko <nadzeya.hutsko@canonical.com>
Mon, 19 Jan 2026 09:59:53 +0000 (10:59 +0100)
committerBenjamin Drung <bdrung@ubuntu.com>
Mon, 19 Jan 2026 13:14:03 +0000 (14:14 +0100)
The test disk image contained raw rootfs instead of the live
structure (LiveOS/rootfs.img), so FSIMG was empty and do_live_overlay()
was never called. Fix by using the live structure on disk.

test/TEST-30-DMSQUASH/test.sh

index 1130d963f39845d34715b08322c876c037c4355c..fbd2b7968a619c51df5fbe9c4b34802378001a89 100755 (executable)
@@ -101,7 +101,8 @@ EOF
 
     rm -f "$TESTDIR/ext4.img"
     truncate -s "$((512 * 652688))" "$TESTDIR/ext4.img"
-    mkfs.ext4 -q -L dracut -d "$TESTDIR"/rootfs/ "$TESTDIR"/ext4.img
+    # Use the live structure (with LiveOS/rootfs.img squashfs) instead of raw rootfs
+    mkfs.ext4 -q -L dracut -d "$TESTDIR"/live/ "$TESTDIR"/ext4.img
     dd if="$TESTDIR"/ext4.img of="$TESTDIR"/root.img bs=512 seek=2048 conv=noerror,notrunc
 
     # erofs drive