crypt: Skip /etc/crypttab if not present
Prevents following error message: I: *** Including module: crypt *** /usr/lib/dracut/modules.d/90crypt/module-setup.sh: line 31: /etc/crypttab: No such file or directorymaster
parent
8f092d0dda
commit
1ae8b8aa02
|
@ -57,7 +57,7 @@ install() {
|
||||||
inst_hook cleanup 30 "$moddir/crypt-cleanup.sh"
|
inst_hook cleanup 30 "$moddir/crypt-cleanup.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $hostonly ]]; then
|
if [[ $hostonly ]] && [[ -f /etc/cryptab ]]; then
|
||||||
# filter /etc/crypttab for the devices we need
|
# filter /etc/crypttab for the devices we need
|
||||||
while read _mapper _dev _rest; do
|
while read _mapper _dev _rest; do
|
||||||
[[ $_mapper = \#* ]] && continue
|
[[ $_mapper = \#* ]] && continue
|
||||||
|
|
Loading…
Reference in New Issue