projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f092d0
)
crypt: Skip /etc/crypttab if not present
author
Amadeusz Żołnowski
<aidecoe@aidecoe.name>
Thu, 25 Jul 2013 21:28:44 +0000
(23:28 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Fri, 26 Jul 2013 06:03:15 +0000
(08:03 +0200)
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
modules.d/90crypt/module-setup.sh
patch
|
blob
|
history
diff --git
a/modules.d/90crypt/module-setup.sh
b/modules.d/90crypt/module-setup.sh
index
639a77f
..
6b32b6a
100755
(executable)
--- 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