aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2012-06-11 19:33:05 +0200
committerSebastian Pipping <sebastian@pipping.org>2012-06-11 19:33:05 +0200
commit36d0fb5559726d863624c75614f35a875aa2fb6d (patch)
treeb0ea539f3caf716a05c58cf3929f76daeee903ef
parentUse real_root option for (plain) Luks setup (diff)
downloadgenkernel-36d0fb5559726d863624c75614f35a875aa2fb6d.tar.gz
genkernel-36d0fb5559726d863624c75614f35a875aa2fb6d.tar.bz2
genkernel-36d0fb5559726d863624c75614f35a875aa2fb6d.zip
Make recent addition conform to POSIX
-rwxr-xr-xdefaults/initrd.scripts2
1 files changed, 1 insertions, 1 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index fd9ac273..f05a746c 100755
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -756,7 +756,7 @@ openLUKS() {
case $1 in
root)
local TYPE=ROOT
- [ -n "${REAL_ROOT}" ] && local LUKS_NAME="$(echo "$REAL_ROOT" | sed -e 's/.*\///')"
+ [ -n "${REAL_ROOT}" ] && local LUKS_NAME="`echo "${REAL_ROOT}" | sed -e 's|.*/||'`"
;;
swap)
local TYPE=SWAP