| Summary: | mount -a sysfs already mounted or /sys busy | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ralf Corsepius <rc040203> | ||||||||||
| Component: | dracut | Assignee: | dracut-maint | ||||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||
| Priority: | unspecified | ||||||||||||
| Version: | 15 | CC: | andy, gregory.lee.bartholomew, harald, jonathan, kzak, me, neon_bikini, tomas | ||||||||||
| Target Milestone: | --- | ||||||||||||
| Target Release: | --- | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | Environment: | ||||||||||||
| Last Closed: | 2012-01-23 09:21:13 UTC | Type: | --- | ||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||
| Documentation: | --- | CRM: | |||||||||||
| Verified Versions: | Category: | --- | |||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
| Attachments: |
|
||||||||||||
|
Description
Ralf Corsepius
2011-06-14 02:27:38 UTC
This is because the entry in /etc/fstab (1st field) does not match with the way how /sys was mounted.
/etc/fstab (generated by anaconda):
sysfs /sys sysfs defaults 0 0
^^^^^
/proc/mounts (probably mounted by dracut):
/sys /sys sysfs rw,relatime 0 0
^^^^
The mount(8) command uses the first two fields to check for already mounted filesytems. These fields in fstab have to match with the same fields in the table of already mounted filesystems.
My suggestion is to use the same patterns everywhere (in /etc/fstab, systemd and dracut). Copy & past from systemd (where is the most complete list of the pseudo filesystems ;-):
"proc", "/proc", "proc",
"sysfs", "/sys", "sysfs",
"devtmpfs", "/dev", "devtmpfs",
"tmpfs", "/dev/shm", "tmpfs",
"devpts", "/dev/pts", "devpts",
"tmpfs", "/run", "tmpfs",
"tmpfs", "/sys/fs/cgroup", "tmpfs",
"cgroup", "/sys/fs/cgroup/systemd", "cgroup",
Unfortunately dracut (modules.d/99base/init) uses:
mount -t proc -o nosuid,noexec,nodev /proc /proc >/dev/null 2>&1
mount -t sysfs -o nosuid,noexec,nodev /sys /sys >/dev/null 2>&1
should be
mount -t proc -o nosuid,noexec,nodev proc /proc >/dev/null 2>&1
mount -t sysfs -o nosuid,noexec,nodev sysfs /sys >/dev/null 2>&1
Reassigning to Harald.
Thanks Karel, I'd just like to add that the absolute path is: /usr/share/dracut/modules.d/99base/init Thanks, Karel. Changes in init fix this bug. But need to update initrd. I'm still having this issue. FYI, gb Created attachment 525819 [details]
"[FAILDED]" boot message
Created attachment 525820 [details]
output of mount -a
Created attachment 525821 [details]
output of mount
Created attachment 525822 [details]
fstab
I have two results: 1) kernel-2.6.40-5.fc15 I have the same error. The proposed fix in comment #1 made no difference in the boot screen error. 2) kernel-2.6.40.3-0.fc15 I do not have this error. The boot screen skips the "mounting other file systems" line that is the error line in (1). The kernel in (2) is a bug fix 720771. Off Topic. Despite the bug being closed, the kernel in (2) does not fix the original problem. It does (fix | ignore | not report) this bug! This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. |