aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.com>2007-05-08 12:21:47 +0000
committerKarsten Hopp <karsten@redhat.com>2007-05-08 12:21:47 +0000
commit5a7aa1d2b07065b58abf2b2ff9e5e02934b0ae88 (patch)
tree1b4018629a9ff000879a0d2a86f813b581104c2d /rc.d/rc.sysinit
parent474b8073f7fb20abe533135c0d031db38b8cafbc (diff)
downloadinitscripts-5a7aa1d2b07065b58abf2b2ff9e5e02934b0ae88.tar
initscripts-5a7aa1d2b07065b58abf2b2ff9e5e02934b0ae88.tar.gz
initscripts-5a7aa1d2b07065b58abf2b2ff9e5e02934b0ae88.tar.bz2
initscripts-5a7aa1d2b07065b58abf2b2ff9e5e02934b0ae88.tar.xz
initscripts-5a7aa1d2b07065b58abf2b2ff9e5e02934b0ae88.zip
don't print an error message about a missing device when p.e. a
logical partition is referenced in /etc/crypttab as it doesn't exist at the first pass
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 8485c6e5..e600945d 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -200,7 +200,7 @@ init_crypto() {
fi
/sbin/cryptsetup ${key:+-d $key} luksOpen "$src" "$dst" <&1
else
- /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1
+ /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null
fi
rc=$?
if [ -z "$key" -a -x /usr/bin/rhgb-client ] \