diff options
author | Kay Sievers <kay@vrfy.org> | 2015-06-02 16:28:28 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2015-06-02 16:28:28 +0200 |
commit | 12e55c7a60af8e1254c5dd6da25e30e3d0ea0c88 (patch) | |
tree | d490548e2b3ea86769b83ae5371a7cf938d4236d | |
parent | 6f54f5373aa681e66278e8e6edaea06e3d0f8958 (diff) | |
parent | 6fd2ccc957f21a423e1457c66e53b1697944d72a (diff) |
Merge pull request #37 from haraldh/boot-options
90-loaderentry.install: fixup BOOT_OPTIONS
-rw-r--r-- | src/kernel-install/90-loaderentry.install | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install index d433e00a5c..4c9b1f0327 100644 --- a/src/kernel-install/90-loaderentry.install +++ b/src/kernel-install/90-loaderentry.install @@ -43,14 +43,14 @@ fi declare -a BOOT_OPTIONS if [[ -f /etc/kernel/cmdline ]]; then - readarray -t BOOT_OPTIONS < /etc/kernel/cmdline + read -r -d '' -a BOOT_OPTIONS < /etc/kernel/cmdline fi if ! [[ ${BOOT_OPTIONS[*]} ]]; then - read -a line -r < /proc/cmdline + read -r -d '' -a line < /proc/cmdline for i in "${line[@]}"; do [[ "${i#initrd=*}" != "$i" ]] && continue - BOOT_OPTIONS[${#BOOT_OPTIONS[@]}]="$i" + BOOT_OPTIONS+=("$i") done fi |