From: Amadeusz Żołnowski Date: Thu, 25 Jul 2013 21:28:44 +0000 (+0200) Subject: crypt: Skip /etc/crypttab if not present X-Git-Tag: 031~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ae8b8aa0281102dd66f14fca8f2342a2608fb10;p=platform%2Fupstream%2Fdracut.git 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 directory --- diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh index 639a77f..6b32b6a 100755 --- a/modules.d/90crypt/module-setup.sh +++ b/modules.d/90crypt/module-setup.sh @@ -57,7 +57,7 @@ install() { inst_hook cleanup 30 "$moddir/crypt-cleanup.sh" fi - if [[ $hostonly ]]; then + if [[ $hostonly ]] && [[ -f /etc/cryptab ]]; then # filter /etc/crypttab for the devices we need while read _mapper _dev _rest; do [[ $_mapper = \#* ]] && continue