aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypttab.53
-rwxr-xr-xrc.d/rc.sysinit6
2 files changed, 8 insertions, 1 deletions
diff --git a/crypttab.5 b/crypttab.5
index 88e6ec15..bd23902b 100644
--- a/crypttab.5
+++ b/crypttab.5
@@ -98,6 +98,9 @@ after destroying the encrypted block device.
system installations,
with some of them encrypting the swap partitions and some of them not.)
+.PP
+No options can be specified for LUKS encrypted partitions.
+
.SH COMPATIBILITY
The
.B /etc/crypptab
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