Get rid of the cut call and replace it with a shell substitution.
parent
4594b48848
commit
81e69c95e1
|
@ -121,7 +121,7 @@ for var in $(cat /proc/cmdline); do
|
|||
url="${url/|*}"
|
||||
(
|
||||
if [[ ${url_type} = "uuid" ]]; then
|
||||
uuid="$(echo ${url} | /busybox cut -d / -f 1)"
|
||||
uuid="${url%%/*}"
|
||||
filepath="${url#*/}"
|
||||
|
||||
info "mounting $(findfs UUID="${uuid}") on /mnt"
|
||||
|
|
Loading…
Reference in New Issue