diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-02-21 20:24:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-02-21 20:24:09 +0000 |
commit | 92a923076b860f085d25dc015b7a224da0043afb (patch) | |
tree | 3f2bebecfaf8ac1445090c30a857e465e13d1499 | |
parent | 24580bf4ae77a91e7200e76a2978e515a970aa92 (diff) | |
download | alpine-conf-92a923076b860f085d25dc015b7a224da0043afb.zip |
setup-bootable: handle more than 2 initrds
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/39
-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 0a5abe9..83b785b 100644 --- a/setup-bootable.in +++ b/setup-bootable.in @@ -144,7 +144,7 @@ check_syslinux() { done #initramfs - initrds=$(awk 'tolower($1) == "initrd" {sub(",", " "); for (i=2; i<=NF; i++) print $i}' \ + initrds=$(awk 'tolower($1) == "initrd" {gsub(",", " "); for (i=2; i<=NF; i++) print $i}' \ "$destdir"/$syslinux_cfg) for i in $(awk 'tolower($1) == "append" {print $0}' \ "$destdir"/$syslinux_cfg); do |