4 type crypttab_contains
>/dev
/null
2>&1 || .
/lib
/dracut-crypt-lib.sh
9 crypttab_contains
"$luks" "$dev" && exit 0
13 # parse for allow-discards
14 if strstr
"$(cryptsetup --help)" "allow-discards"; then
15 if discarduuids
=$
(getargs
"rd.luks.allow-discards"); then
16 discarduuids
=$
(str_replace
"$discarduuids" 'luks-' '')
17 if strstr
" $discarduuids " " ${luks##luks-}"; then
18 allowdiscards
="discard"
20 elif getargbool
0 rd.luks.allow-discards
; then
21 allowdiscards
="discard"
25 echo "$luks $dev - timeout=0,$allowdiscards" >> /etc
/crypttab
27 if command -v systemctl
>/dev
/null
; then
28 systemctl daemon-reload
29 systemctl start cryptsetup.target