Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 143034

Summary: Can't mount swap with RC_SWAP_ERASE="yes"
Product: Gentoo Linux Reporter: Rhys Robinson <iduno>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rhys Robinson 2006-08-06 18:14:53 UTC
When swap space is erased in /etc/init.d/halt.sh (by setting RC_SWAP_ERASE="yes" in /etc/conf.d/rc) swapon -a cannot mount swapspace on subsequent boots.
Requires mke2fs [partition] and mkswap to fix.
Found that out here http://bugs.centos.org/view.php?id=1399
Writing 0's to swap superblock not a great idea perhaps?
Comment 1 SpanKY gentoo-dev 2006-08-06 19:54:29 UTC
running mke2fs makes no sense at all

the halt code runs `mkswap` on the partition after erasing it, so needing to run mkswap yourself also makes no sense

post the output when shutting down