aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-11-04 11:18:12 -0500
committerBill Nottingham <notting@redhat.com>2008-11-04 11:18:12 -0500
commit7f91b1d8a4c50052c1698b1fe2aea4d85cef319e (patch)
treee38bd608831dd964f61b7dd5249011d5110c2452 /rc.d/init.d
parent38d44256cc4bab1b9eb920b1dc0bc24eaafabc09 (diff)
downloadinitscripts-7f91b1d8a4c50052c1698b1fe2aea4d85cef319e.tar
initscripts-7f91b1d8a4c50052c1698b1fe2aea4d85cef319e.tar.gz
initscripts-7f91b1d8a4c50052c1698b1fe2aea4d85cef319e.tar.bz2
initscripts-7f91b1d8a4c50052c1698b1fe2aea4d85cef319e.tar.xz
initscripts-7f91b1d8a4c50052c1698b1fe2aea4d85cef319e.zip
Don't mkswap on halt (#469823)
Doing so blows away any label or UUID on the partition, which makes specifying encrypted swap by label or UUID fail miserably.
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/halt2
1 files changed, 0 insertions, 2 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 5dac7adc..f8b56d22 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -102,8 +102,6 @@ if [ -n "$SWAPS" ]; then
backdev=$(/sbin/cryptsetup status "$dst" \
| awk '$1 == "device:" { print $2 }')
/sbin/cryptsetup remove "$dst"
- # Leave partition with a blank plain-text swap
- mkswap "$backdev" > /dev/null
fi
done
fi