From 37c2bed3009c75782f482df818e2fdc335591a26 Mon Sep 17 00:00:00 2001 From: Thomas Liske Date: Sun, 14 Nov 2021 22:22:38 +0100 Subject: setup-bootable: handle initrd lines with multiple files Used for ucode updates in the alpine-extended 3.14+ image. The script warns incorrect about a missing initrd file. --- setup-bootable.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup-bootable.in') diff --git a/setup-bootable.in b/setup-bootable.in index b9a9f3d..0a5abe9 100644 --- a/setup-bootable.in +++ b/setup-bootable.in @@ -144,7 +144,7 @@ check_syslinux() { done #initramfs - initrds=$(awk 'tolower($1) == "initrd" {print $2}' \ + initrds=$(awk 'tolower($1) == "initrd" {sub(",", " "); for (i=2; i<=NF; i++) print $i}' \ "$destdir"/$syslinux_cfg) for i in $(awk 'tolower($1) == "append" {print $0}' \ "$destdir"/$syslinux_cfg); do -- cgit v1.2.3