diff options
author | Bill Nottingham <notting@redhat.com> | 2008-11-04 11:18:12 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-11-04 11:18:12 -0500 |
commit | 7f91b1d8a4c50052c1698b1fe2aea4d85cef319e (patch) | |
tree | e38bd608831dd964f61b7dd5249011d5110c2452 /rc.d/init.d/halt | |
parent | 38d44256cc4bab1b9eb920b1dc0bc24eaafabc09 (diff) | |
download | initscripts-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/halt')
-rwxr-xr-x | rc.d/init.d/halt | 2 |
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 |