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

Bug 400967

Summary: >=sys-apps/openrc-0.9.8.1 sysfs service fails to start when /etc/mtab is missing
Product: Gentoo Hosted Projects Reporter: Ben Kohler <bkohler>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal CC: beezgetz
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 399185, 401555, 401593    
Attachments: patch to fix cgroups mount

Description Ben Kohler gentoo-dev 2012-01-26 21:42:28 UTC
The mount_cgroups function in /etc/init.d/sysfs from >=sys-apps/openrc-0.9.8.1 uses just "mount" rather than "mount -n", so it fails on new installs and other places where /etc/mtab doesn't exist yet.

Reproducible: Always

Steps to Reproduce:
1. emerge ">=sys-apps/openrc-0.9.8.1"
2. rm /etc/mtab
3. reboot
Actual Results:  
 * Mounting /sys ...
 * Mounting debug filesystem ...
 * Mounting cgroup filesystem
can't create lock file /etc/mtab~932: Read-only file system (use -n flag to override)
can't create lock file /etc/mtab~934: Read-only file system (use -n flag to override)
can't create lock file /etc/mtab~936: Read-only file system (use -n flag to override)
can't create lock file /etc/mtab~938: Read-only file system (use -n flag to override)
 * ERROR: sysfs failed to start
 * Mounting /dev ...
 * ERROR: cannot start udev as sysfs would not start

... quite a few things go nutso after this due to failed udev
Comment 1 Ben Kohler gentoo-dev 2012-01-26 21:44:12 UTC
Created attachment 300007 [details, diff]
patch to fix cgroups mount

Should apply against sys-apps/openrc-0.9.8.{1,2}
Comment 2 William Hubbs gentoo-dev 2012-01-27 17:30:30 UTC
An updated version of your patch was applied in commit 58e0403.

Thanks for the report.
Comment 3 William Hubbs gentoo-dev 2012-01-30 17:56:01 UTC
*** Bug 401515 has been marked as a duplicate of this bug. ***