aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2007-10-19 07:21:33 +0000
committerHarald Hoyer <harald@redhat.com>2007-10-19 07:21:33 +0000
commit72816209038dc246728766f3a61326b7e4307692 (patch)
tree232dea194266385a9d9602b8c45d792a2d2bb62b
parenta05a0b69d412b9400eb6fae1611551f27ee2ef22 (diff)
downloadinitscripts-72816209038dc246728766f3a61326b7e4307692.tar
initscripts-72816209038dc246728766f3a61326b7e4307692.tar.gz
initscripts-72816209038dc246728766f3a61326b7e4307692.tar.bz2
initscripts-72816209038dc246728766f3a61326b7e4307692.tar.xz
initscripts-72816209038dc246728766f3a61326b7e4307692.zip
- fix encrypted swap partitions with random key
-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 758f5844..4755d0a9 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -193,7 +193,7 @@ init_crypto() {
&& /usr/bin/rhgb-client --ping ; then
/usr/bin/rhgb-client --quit
fi
- if cryptsetup isLuks "$src" 2>/dev/null; then
+ if [ -z "$makeswap" -a cryptsetup isLuks "$src" 2>/dev/null ]; then
if key_is_random "$key"; then
echo $"$dst: LUKS requires non-random key, skipping"
ret=1