]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
CI: write whole etc/issue for domU initrd
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Fri, 11 Apr 2025 20:32:16 +0000 (22:32 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 12 Apr 2025 14:06:43 +0000 (15:06 +0100)
Upcoming changes won't unpack original rootfs anymore, so sed on
existing file cannot be used. Override the whole file instead.

No functional change intended.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
automation/scripts/qubes-x86-64.sh
automation/scripts/xilinx-smoke-dom0-x86_64.sh

index 861e302d845b14efa687d885d2f6524e5d867381..c4be71464246f195f326365b2bcf422fd158da83 100755 (executable)
@@ -182,7 +182,10 @@ ${domU_check}
 " > etc/local.d/xen.start
     chmod +x etc/local.d/xen.start
     echo "rc_verbose=yes" >> etc/rc.conf
-    sed -i -e 's/^Welcome/domU \0/' etc/issue
+    echo "domU Welcome to Alpine Linux
+Kernel \r on an \m (\l)
+
+" > etc/issue
     find . | fakeroot -i ../fakeroot-save cpio -H newc -o | gzip > ../binaries/domU-rootfs.cpio.gz
     cd ..
     rm -rf rootfs
index 69caabe2d8ed1ba6879d1fda33d6822e0c06bbd2..7e5382931b85cd98d822f916d203d67e55552b4d 100755 (executable)
@@ -103,7 +103,10 @@ ${DOMU_CMD}
 " > etc/local.d/xen.start
 chmod +x etc/local.d/xen.start
 echo "rc_verbose=yes" >> etc/rc.conf
-sed -i -e 's/^Welcome/domU \0/' etc/issue
+echo "domU Welcome to Alpine Linux
+Kernel \r on an \m (\l)
+
+" > etc/issue
 copy_domU_files
 find . | cpio -H newc -o | gzip > ../binaries/domU-rootfs.cpio.gz
 cd ..