|
|
@@ -11,7 +11,7 @@ Forwarded: not-needed
|
|
|
|
|
|
Reproducer using command line (run as non-root):
|
|
|
$ fallocate --length 8m test.img
|
|
|
- $ echo foo | /sbin/cryptsetup luksFormat test.img -
|
|
|
+ $ echo foo | /usr/sbin/cryptsetup luksFormat test.img -
|
|
|
|
|
|
The actual reason is DSA disabled automatic module loading by
|
|
|
setting /proc/sys/kernel/modules_disabled to 1, for obvious reaons.
|
|
|
@@ -38,9 +38,9 @@ Forwarded: not-needed
|
|
|
trap 'onexit' EXIT
|
|
|
|
|
|
truncate -s 4M $tmp
|
|
|
--echo -n foo | /sbin/cryptsetup luksFormat --type luks1 $tmp -
|
|
|
+-echo -n foo | /usr/sbin/cryptsetup luksFormat --type luks1 $tmp -
|
|
|
+PRE="$(md5sum $tmp)"
|
|
|
-+echo -n foo | /sbin/cryptsetup luksFormat --type luks1 $tmp - || true
|
|
|
++echo -n foo | /usr/sbin/cryptsetup luksFormat --type luks1 $tmp - || true
|
|
|
+PST="$(md5sum $tmp)"
|
|
|
+if [ "$PRE" = "$PST" ] ; then
|
|
|
+ echo 'cryptsetup failed, assuming AF_ALG,SOCK_SEQPACKET failure'
|