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

Bug 262467

Summary: baselayout-1: /sbin/rc should check if /proc and /sys are pre-mounted
Product: Gentoo Linux Reporter: William Pitcock <nenolod>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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: