diff options
Diffstat (limited to 'system/openrc/modloop.initd')
-rw-r--r-- | system/openrc/modloop.initd | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/system/openrc/modloop.initd b/system/openrc/modloop.initd index 9d664dd40..85ad2b165 100644 --- a/system/openrc/modloop.initd +++ b/system/openrc/modloop.initd @@ -24,9 +24,10 @@ mountdirs() { find_modloop() { local dir="$1" - local kver=$(uname -r) + local kver="$(uname -r)" local oifs="$IFS" - IFS=$'\n' + IFS=" +" set -- $(blkid "$dir"/boot/* "$dir"/*) IFS="$oifs" for line; do @@ -42,7 +43,7 @@ find_modloop() { find_backing_file() { local dir="$1" - local dev=$(df -P "$dir" | tail -1 | awk '{print $1}') + local dev="$(df -P "$dir" | tail -1 | awk '{print $1}')" cat /sys/block/${dev#/dev/}/loop/backing_file 2>/dev/null } |