Bug 5018

Summary: swap files not "swapoff"ed at halt
Product: [Retired] Red Hat Linux Reporter: weejock-rhbug
Component: initscriptsAssignee: David Lawrence <dkl>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-09-09 14:37:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description weejock-rhbug 1999-09-09 08:55:32 UTC
I occasionally have to add extra swap to my desktop box,
so I do a:
# swapon /usr/local/swapfile
to get another 100Mb of swap.  Upon shutdown, the swapfile
isn't unused, so /usr and /usr/local can't be unmounted.

I think you need something like:
swapoff `cut -f1 -d\  /proc/swaps | tail +2`
after the "swapoff -a".  Either that, or swapoff needs to
check /proc/swaps, rather than /etc/fstab to find the list
of active swaps.

Cheers,
Matthew.

Comment 1 Bill Nottingham 1999-09-09 14:37:59 UTC
fixed in initscripts-4.38-2.