diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index fd9ac27..f05a746 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