We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 00bfd50 + cb21740 commit 52aaad6Copy full SHA for 52aaad6
autopart-luks-2.ks.in
@@ -36,6 +36,14 @@ if [[ "$result" != "2" ]] ; then
36
exit 1
37
fi
38
39
+# Check if the 'allow-discards' flag is set.
40
+result=$(cryptsetup luksDump ${crypted} | grep "Flags" | cut -d: -f2 | tr -d "\t\n ")
41
+
42
+if [[ "$result" != "allow-discards" ]] ; then
43
+ echo "*** unexpected flags set for ${crypted}: ${result}" > /root/RESULT
44
+ exit 1
45
+fi
46
47
# Try to use the passphrase.
48
echo "passphrase" | cryptsetup luksOpen --test-passphrase "${crypted}"
49
0 commit comments