]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
crypt: s/allow-discards/discard for crypttab
authorHarald Hoyer <harald@redhat.com>
Mon, 27 Jul 2015 11:30:22 +0000 (13:30 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 27 Jul 2015 11:30:22 +0000 (13:30 +0200)
actually the option in crypttab is named "discard" and not
"allow-discards"

https://bugzilla.suse.com/show_bug.cgi?id=932972

modules.d/90crypt/crypt-run-generator.sh

index 5bf60ecb7b33618a6c9b3ef0bae71f354283142d..8dad76ba1e4c3e44a05558cbb93ff37161b1603d 100755 (executable)
@@ -15,10 +15,10 @@ if strstr "$(cryptsetup --help)" "allow-discards"; then
     if discarduuids=$(getargs "rd.luks.allow-discards"); then
         discarduuids=$(str_replace "$discarduuids" 'luks-' '')
         if strstr " $discarduuids " " ${luks##luks-}"; then
-            allowdiscards="allow-discards"
+            allowdiscards="discard"
         fi
     elif getargbool 0 rd.luks.allow-discards; then
-        allowdiscards="allow-discards"
+        allowdiscards="discard"
     fi
 fi