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
2015-07-27 13:30:22 +02:00
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.
2015-07-13 10:44:27 +02:00
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
2014-08-29 13:38:47 +02:00
Harald Hoyer
a13bf117d5
crypt: only manually activate systemd-cryptsetup, if not in crypttab
...
Only additional rd.luks.UUID have to be manually activated.
2013-08-13 10:26:29 +02:00
Harald Hoyer
730b9b8b77
crypt/crypt-run-generator: also skip if UUID match in crypttab
2013-08-13 01:20:06 +02:00
Harald Hoyer
fdeae2a3ac
crypt/crypt-run-generator.sh: do not timeout for LUKS passwords with systemd
2012-12-14 09:04:55 +01:00
Harald Hoyer
329bbd797f
crypt/crypt-run-generator.sh: fixup last commit 065fc56ab2
2012-11-21 16:36:37 +01:00
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.
2012-11-21 16:01:45 +01:00
Amadeusz Żołnowski
585b3b37c0
90crypt: call systemd commands only if systemd binaries are there
2012-10-08 03:28:43 -04:00
Harald Hoyer
3722020071
crypt/crypt-run-generator.sh: add allow-discards to options in crypttab
2012-09-26 11:49:28 +02:00
Harald Hoyer
8a7f561ee5
crypt: do not run systemd crypt generator
...
"systemctl daemon-reload" does it already for us
2012-09-04 09:49:45 +02:00
Harald Hoyer
3d3c192621
crypt/crypt-run-generator.sh: check if crypttab exists
2012-07-30 22:29:47 +02:00
Harald Hoyer
3f7e5358e5
crypt/crypt-run-generator.sh: do not add already existing luks
2012-07-30 20:41:16 +02:00
Harald Hoyer
3d352f5228
crypt: add systemd crypt support
2012-07-30 17:08:52 +02:00