Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262467 - baselayout-1: /sbin/rc should check if /proc and /sys are pre-mounted
Summary: baselayout-1: /sbin/rc should check if /proc and /sys are pre-mounted
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-14 20:13 UTC by William Pitcock
Modified: 2009-10-11 01:09 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 William Pitcock 2009-03-14 20:13:31 UTC
When running Gentoo on kernels which provide initrds that premount /proc and /sys (like Debian and Redhat kernels do), the boot process fails as mount exits with non-zero status due to the filesystems already being mounted.

Right now in ApplianceKit, we are patching /sbin/rc to drop the 'try' keyword before those mount commands, so that the boot process may continue correctly.

Please add checks to ensure that that the filesystems are not re-mounted. Checking for presence of /proc/mounts and then grepping it for /sys should do just fine here. Alternatively, you could check for /sys/kernel, that's not going to go away any time soon.

Reproducible: Always

Steps to Reproduce: