From 257e9312aa553f686673b11eaf28eeb49ff1698f Mon Sep 17 00:00:00 2001 From: Erik Agterdenbos Date: Wed, 26 Jun 2024 00:06:22 +0200 Subject: [PATCH] Replace sed match string to support InstallDevice on SL Micro 6 --- pkg/build/templates/rebuild-iso.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/templates/rebuild-iso.sh.tpl b/pkg/build/templates/rebuild-iso.sh.tpl index 667bd4aa..60a484ae 100644 --- a/pkg/build/templates/rebuild-iso.sh.tpl +++ b/pkg/build/templates/rebuild-iso.sh.tpl @@ -32,7 +32,7 @@ NEW_SQUASH_FILE=${RAW_EXTRACT_DIR}/${SQUASH_BASENAME} # Select the desired install device - assumes data destruction and makes the installation fully unattended by enabling GRUB timeout {{ if ne .InstallDevice "" -}} echo -e "set timeout=3\nset timeout_style=menu\n$(cat ${ISO_EXTRACT_DIR}/boot/grub2/grub.cfg)" > ${ISO_EXTRACT_DIR}/boot/grub2/grub.cfg -sed -i '/ignition.platform/ s|$| rd.kiwi.oem.installdevice={{.InstallDevice}} |' ${ISO_EXTRACT_DIR}/boot/grub2/grub.cfg +sed -i '/root=install:CDLABEL=INSTALL/ s|$| rd.kiwi.oem.installdevice={{.InstallDevice}} |' ${ISO_EXTRACT_DIR}/boot/grub2/grub.cfg {{ end -}}