chiark / gitweb /
kernel-install/90-loaderentry.install: fix cmdline parsing
[elogind.git] / src / kernel-install / 90-loaderentry.install
index 6f032b5a4b7b47e26c5537755472a730210ec8c6..d433e00a5c3fc1508024431558d8c614d9c6c4d2 100644 (file)
@@ -47,7 +47,7 @@ if [[ -f /etc/kernel/cmdline ]]; then
 fi
 
 if ! [[ ${BOOT_OPTIONS[*]} ]]; then
-    read -ar line < /proc/cmdline
+    read -a line -r < /proc/cmdline
     for i in "${line[@]}"; do
         [[ "${i#initrd=*}" != "$i" ]] && continue
         BOOT_OPTIONS[${#BOOT_OPTIONS[@]}]="$i"