Blame 0050-crypt-s-allow-discards-discard-for-crypttab.patch
|
Harald Hoyer |
368a0c |
From 2082cdf230574fa7482903730b584445ed3a2a08 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
368a0c |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
368a0c |
Date: Mon, 27 Jul 2015 13:30:22 +0200
|
|
Harald Hoyer |
368a0c |
Subject: [PATCH] crypt: s/allow-discards/discard for crypttab
|
|
Harald Hoyer |
368a0c |
|
|
Harald Hoyer |
368a0c |
actually the option in crypttab is named "discard" and not
|
|
Harald Hoyer |
368a0c |
"allow-discards"
|
|
Harald Hoyer |
368a0c |
|
|
Harald Hoyer |
368a0c |
https://bugzilla.suse.com/show_bug.cgi?id=932972
|
|
Harald Hoyer |
368a0c |
---
|
|
Harald Hoyer |
368a0c |
modules.d/90crypt/crypt-run-generator.sh | 4 ++--
|
|
Harald Hoyer |
368a0c |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
368a0c |
|
|
Harald Hoyer |
368a0c |
diff --git a/modules.d/90crypt/crypt-run-generator.sh b/modules.d/90crypt/crypt-run-generator.sh
|
|
Harald Hoyer |
368a0c |
index 5bf60ec..8dad76b 100755
|
|
Harald Hoyer |
368a0c |
--- a/modules.d/90crypt/crypt-run-generator.sh
|
|
Harald Hoyer |
368a0c |
+++ b/modules.d/90crypt/crypt-run-generator.sh
|
|
Harald Hoyer |
368a0c |
@@ -15,10 +15,10 @@ if strstr "$(cryptsetup --help)" "allow-discards"; then
|
|
Harald Hoyer |
368a0c |
if discarduuids=$(getargs "rd.luks.allow-discards"); then
|
|
Harald Hoyer |
368a0c |
discarduuids=$(str_replace "$discarduuids" 'luks-' '')
|
|
Harald Hoyer |
368a0c |
if strstr " $discarduuids " " ${luks##luks-}"; then
|
|
Harald Hoyer |
368a0c |
- allowdiscards="allow-discards"
|
|
Harald Hoyer |
368a0c |
+ allowdiscards="discard"
|
|
Harald Hoyer |
368a0c |
fi
|
|
Harald Hoyer |
368a0c |
elif getargbool 0 rd.luks.allow-discards; then
|
|
Harald Hoyer |
368a0c |
- allowdiscards="allow-discards"
|
|
Harald Hoyer |
368a0c |
+ allowdiscards="discard"
|
|
Harald Hoyer |
368a0c |
fi
|
|
Harald Hoyer |
368a0c |
fi
|
|
Harald Hoyer |
368a0c |
|