Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143034 - Can't mount swap with RC_SWAP_ERASE="yes"
Summary: Can't mount swap with RC_SWAP_ERASE="yes"
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-06 18:14 UTC by Rhys Robinson
Modified: 2006-08-06 19:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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