diff options
author | Bill Nottingham <notting@redhat.com> | 2008-05-23 10:54:05 -0400 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-03-19 13:30:01 +0100 |
commit | e80b1837bbc523eb5396e4673823ace81310cbd2 (patch) | |
tree | 14818737fa580971dfc5f3db1c57f03f1d691a1b | |
parent | 2b7eba1cda5e276761cd447ecbe9c4798142bae2 (diff) | |
download | initscripts-e80b1837bbc523eb5396e4673823ace81310cbd2.tar initscripts-e80b1837bbc523eb5396e4673823ace81310cbd2.tar.gz initscripts-e80b1837bbc523eb5396e4673823ace81310cbd2.tar.bz2 initscripts-e80b1837bbc523eb5396e4673823ace81310cbd2.tar.xz initscripts-e80b1837bbc523eb5396e4673823ace81310cbd2.zip |
Don't try to startup crypto if we can't find the device, or if it isn't there.
-rwxr-xr-x | rc.d/rc.sysinit | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index ea8b1bd5..33ae1fdb 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -147,6 +147,8 @@ init_crypto() { elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then src=$(__readlink $src) fi + [ -z "$src" ] && continue + [ -b "$src" ] || continue # Parse the options field, convert to cryptsetup parameters # and contruct the command line while [ -n "$opt" ]; do |