diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-12-21 18:37:11 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-12-25 14:03:53 +0100 |
| commit | 8e065320b32804bcab1326dff1e27337163e7e85 (patch) | |
| tree | 8ec710a481379aa9a99176bb6339224937fad116 /data | |
| parent | 6fa36ec9957501e9e917a345fb93a8d95786199d (diff) | |
| download | vyos-build-8e065320b32804bcab1326dff1e27337163e7e85.tar.gz vyos-build-8e065320b32804bcab1326dff1e27337163e7e85.zip | |
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.
Diffstat (limited to 'data')
| -rwxr-xr-x | data/live-build-config/hooks/live/01-live-serial.binary | 6 |
1 files changed, 4 insertions, 2 deletions
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 + |
