From 8e065320b32804bcab1326dff1e27337163e7e85 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 21 Dec 2025 18:37:11 +0100 Subject: Testsuite: T8111: add --cloud-init test target Add support to dynamically assemble cloud-init NoCloud ISO image and attach it to an existing qcow2 image file. The config data injected via NoCloud is later validated if it has been properly configured on the OS level. --- data/live-build-config/hooks/live/01-live-serial.binary | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/live-build-config/hooks/live/01-live-serial.binary b/data/live-build-config/hooks/live/01-live-serial.binary index 05785da7..0e449fc9 100755 --- a/data/live-build-config/hooks/live/01-live-serial.binary +++ b/data/live-build-config/hooks/live/01-live-serial.binary @@ -18,14 +18,16 @@ echo "$GRUB_MENUENTRY" | sed \ -e "s/$KVM_CONSOLE/$SERIAL_CONSOLE/g" >> $GRUB_PATH # Live.cfg Update -ISOLINUX_MENUENTRY=$(sed -e '/label live-\(.*\)-vyos$/,/^\tappend.*/!d' $ISOLINUX_PATH) +ISOLINUX_MENUENTRY=$(sed -e '/label live-vyos$/,/^\tappend.*/!d' $ISOLINUX_PATH) # Update KVM menuentry name sed -i 's/Live system \((.*vyos)\)/Live system \1 - KVM console/' $ISOLINUX_PATH # Insert serial menuentry echo "\n$ISOLINUX_MENUENTRY" | sed \ - -e 's/live-\(.*\)-vyos/live-\1-vyos-serial/' \ + -e 's/live-vyos/live-vyos-serial/' \ + -e 's/^\tmenu label \^/\tmenu label /' \ -e '/^\tmenu default/d' \ -e 's/Live system \((.*vyos)\)/Live system \1 - Serial console/' \ -e "s/$KVM_CONSOLE/$SERIAL_CONSOLE/g" >> $ISOLINUX_PATH + -- cgit v1.2.3