X-Git-Url: https://git.tld-linux.org/?p=rc-scripts.git;a=blobdiff_plain;f=rc.d%2Finit.d%2Fcryptsetup;h=d5ac2c315da0fe582c7bb5175f8fdb260d7ba12f;hp=263a39cb4ed8b71ec1d51d853571bc6995da8be9;hb=HEAD;hpb=5d89b49a413e24dae01d41cdb0d50b919ad4830e diff --git a/rc.d/init.d/cryptsetup b/rc.d/init.d/cryptsetup index 263a39c..d5ac2c3 100755 --- a/rc.d/init.d/cryptsetup +++ b/rc.d/init.d/cryptsetup @@ -105,7 +105,7 @@ init_crypto() { continue fi - if /sbin/cryptsetup isLuks "$src" 2>/dev/null; then + if /sbin/cryptsetup --disable-locks isLuks "$src" 2>/dev/null; then if key_is_random "$key"; then nls "%s: LUKS requires non-random key, skipping" "$dst" ret=1 @@ -114,7 +114,7 @@ init_crypto() { if [ -n "$params" ]; then nls "%s: options are invalid for LUKS partitions, ignoring them" "$dst" fi - /sbin/cryptsetup ${key:+-d $key} luksOpen "$src" "$dst" <&1 + /sbin/cryptsetup --disable-locks ${key:+-d $key} luksOpen "$src" "$dst" <&1 fi rc=$? if [ $rc -ne 0 ]; then @@ -144,7 +144,7 @@ halt_crypto() { [ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue if [ -b "/dev/mapper/$dst" ]; then if LC_ALL=C /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then - /sbin/cryptsetup remove "$dst" + /sbin/cryptsetup --disable-locks remove "$dst" else fnval=1 fi