Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400967 - >=sys-apps/openrc-0.9.8.1 sysfs service fails to start when /etc/mtab is missing
Summary: >=sys-apps/openrc-0.9.8.1 sysfs service fails to start when /etc/mtab is missing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
: 401515 (view as bug list)
Depends on:
Blocks: 399185 401555 401593
  Show dependency tree
 
Reported: 2012-01-26 21:42 UTC by Ben Kohler
Modified: 2012-01-30 22:49 UTC (History)
1 user (show)

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


Attachments
patch to fix cgroups mount (openrc-0.9.8.2-nomtab.patch,510 bytes, patch)
2012-01-26 21:44 UTC, Ben Kohler
Details | Diff

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