Skip to content

Commit 92226b9

Browse files
committed
test: verify portable hostonly=no dracut config on 26.04+
Mirrors the impl change: assert /etc/dracut.conf.d/01-portable-image.conf exists and contains hostonly="no" on non-noble suites.
1 parent 47cc85a commit 92226b9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/test-image-structure.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,11 +556,14 @@ if [ "$SUITE" = "noble" ]; then
556556
fi
557557
else
558558
# r[verify image.boot.dracut]
559-
check_not "no dracut hostonly config on non-noble" test -f "$MNT/etc/dracut.conf.d/01-fix-hostonly.conf"
559+
check_not "no dracut hostonly fix config on non-noble" test -f "$MNT/etc/dracut.conf.d/01-fix-hostonly.conf"
560560
# r[verify image.boot.hardware-drivers+3]
561561
check_not "no dracut hardware-drivers config on non-noble" test -f "$MNT/etc/dracut.conf.d/03-hardware-drivers.conf"
562562
# r[verify image.boot.cloud-drivers+5]
563563
check_not "no dracut cloud-drivers config on non-noble" test -f "$MNT/etc/dracut.conf.d/04-cloud-drivers.conf"
564+
# r[verify image.boot.dracut]: portable image config supplies hostonly=no
565+
check "dracut portable-image config exists on non-noble" test -f "$MNT/etc/dracut.conf.d/01-portable-image.conf"
566+
check "dracut portable-image config sets hostonly=no" grep -q 'hostonly="no"' "$MNT/etc/dracut.conf.d/01-portable-image.conf"
564567
fi
565568

566569
# r[verify image.boot.grub-timeout]

0 commit comments

Comments
 (0)