Harald Hoyer
2082cdf230
crypt: s/allow-discards/discard for crypttab
...
actually the option in crypttab is named "discard" and not
"allow-discards"
https://bugzilla.suse.com/show_bug.cgi?id=932972
10 years ago
Harald Hoyer
968280e370
crypt: skip crypttab entries with the same device
...
It was only checked, if the name of the crypttab entry matched.
This patch adds checking, if the device matches.
10 years ago
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
11 years ago
Harald Hoyer
a13bf117d5
crypt: only manually activate systemd-cryptsetup, if not in crypttab
...
Only additional rd.luks.UUID have to be manually activated.
12 years ago
Harald Hoyer
730b9b8b77
crypt/crypt-run-generator: also skip if UUID match in crypttab
12 years ago
Harald Hoyer
fdeae2a3ac
crypt/crypt-run-generator.sh: do not timeout for LUKS passwords with systemd
12 years ago
Harald Hoyer
329bbd797f
crypt/crypt-run-generator.sh: fixup last commit 065fc56ab2
12 years ago
Robert Buchholz
065fc56ab2
Make short uuid specification for allow-discards work
...
1) strstr " $discarduuids " did not remove the optional
'luks-' prefix from the argument as the documentation says.
2) The lookup seems backwards. $luksdev ($luks in the other code copy)
is the full uuid and thus one should check whether the user-supplied
argument (short form) is contained therein, not the other way around.
Before this commit, the only way to trigger allow-discards was to
specify the full uuid without the 'luks-' prefix.
12 years ago
Amadeusz Żołnowski
585b3b37c0
90crypt: call systemd commands only if systemd binaries are there
13 years ago
Harald Hoyer
3722020071
crypt/crypt-run-generator.sh: add allow-discards to options in crypttab
13 years ago
Harald Hoyer
8a7f561ee5
crypt: do not run systemd crypt generator
...
"systemctl daemon-reload" does it already for us
13 years ago
Harald Hoyer
3d3c192621
crypt/crypt-run-generator.sh: check if crypttab exists
13 years ago
Harald Hoyer
3f7e5358e5
crypt/crypt-run-generator.sh: do not add already existing luks
13 years ago
Harald Hoyer
3d352f5228
crypt: add systemd crypt support
13 years ago