diff options
author | Thomas Liske <thomas@fiasko-nw.net> | 2021-11-14 22:22:38 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2021-11-16 09:29:20 +0000 |
commit | 37c2bed3009c75782f482df818e2fdc335591a26 (patch) | |
tree | 5243e05fe4958a90054527ab83e9886ed0ea2df3 /setup-bootable.in | |
parent | e0983e192dd45149bacdff815036751b6369c47c (diff) | |
download | alpine-conf-37c2bed3009c75782f482df818e2fdc335591a26.zip |
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.
Diffstat (limited to 'setup-bootable.in')
-rw-r--r-- | setup-bootable.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 |