CI: write whole etc/issue for domU initrd

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>
(cherry picked from commit f401eae6ec)
This commit is contained in:
Marek Marczykowski-Górecki authored and Andrew Cooper committed 2025-05-09 22:45:20 +01:00
1 parent 62cba67338
commit c993d8e4fb
2 files changed
+8 -2

No files matched your search

+4 -1
View File
@@ -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
@@ -65,7 +65,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
find . | cpio -H newc -o | gzip > ../binaries/domU-rootfs.cpio.gz
cd ..
rm -rf rootfs
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.