|
@@ -38,9 +38,9 @@ Bug-Debian: https://bugs.debian.org/881864
|
|
|
trap 'onexit' EXIT
|
|
|
|
|
|
truncate -s 4M $tmp
|
|
|
--echo -n foo | /sbin/cryptsetup luksFormat $tmp -
|
|
|
+-echo -n foo | /sbin/cryptsetup luksFormat --type luks1 $tmp -
|
|
|
+PRE="$(md5sum $tmp)"
|
|
|
-+echo -n foo | /sbin/cryptsetup luksFormat $tmp - || true
|
|
|
++echo -n foo | /sbin/cryptsetup luksFormat --type luks1 $tmp - || true
|
|
|
+PST="$(md5sum $tmp)"
|
|
|
+if [ "$PRE" = "$PST" ] ; then
|
|
|
+ echo 'cryptsetup failed, assuming AF_ALG,SOCK_SEQPACKET failure'
|