D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
lib
/
dracut
/
modules.d
/
90crypt
/
Filename :
crypt-run-generator.sh
back
Copy
#!/bin/sh . /lib/dracut-lib.sh type crypttab_contains >/dev/null 2>&1 || . /lib/dracut-crypt-lib.sh dev=$1 luks=$2 crypttab_contains "$luks" "$dev" && exit 0 allowdiscards="-" # parse for allow-discards 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="discard" fi elif getargbool 0 rd.luks.allow-discards; then allowdiscards="discard" fi fi echo "$luks $dev - timeout=0,$allowdiscards" >> /etc/crypttab if command -v systemctl >/dev/null; then systemctl daemon-reload systemctl start cryptsetup.target fi exit 0
Name
Size
Last Modified
Owner
Permissions
Actions
crypt-cleanup.sh
0.432
KB
October 08 2018 1:38:33
root
0755
crypt-lib.sh
7.472
KB
October 08 2018 1:38:33
root
0755
crypt-run-generator.sh
0.752
KB
October 08 2018 1:38:33
root
0755
cryptroot-ask.sh
4.756
KB
October 08 2018 1:38:33
root
0755
module-setup.sh
4.605
KB
April 06 2024 1:22:06
root
0755
parse-crypt.sh
6.97
KB
October 08 2018 1:38:33
root
0755
parse-keydev.sh
1.345
KB
October 08 2018 1:38:33
root
0755
probe-keydev.sh
0.373
KB
October 08 2018 1:38:33
root
0755
2017 © D7net | D704T team