diff options
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 4b3ec8d1..79e20cfa 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -192,7 +192,11 @@ init_crypto() { ret=1 continue fi - /sbin/cryptsetup $params ${key:+-d $key} luksOpen "$src" "$dst" <&1 + if [ -n "$params" ]; then + echo "$dst: options are invalid for LUKS partitions," \ + "ignoring them" + fi + /sbin/cryptsetup ${key:+-d $key} luksOpen "$src" "$dst" <&1 else /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 fi |