Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181121 - boot fails with bindmount of / in fstab
Summary: boot fails with bindmount of / in fstab
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-06 19:55 UTC by Charlie Nolan
Modified: 2007-06-08 01:05 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 Charlie Nolan 2007-06-06 19:55:17 UTC
I've got a chroot jail with a bindmount back to / in /etc/fstab.  When I reboot the computer, it fails just after udev, when it tries to remount the root filesystem read/write.  This appears to be caused by a call to mount 

Reproducible: Always

Steps to Reproduce:
1. Add a bindmount of / to /etc/fstab like so:
/ /path/to/bind none bind 0 0
2. Reboot the computer.

Actual Results:  
* Remounting root filesystem read/write...
* Root filesystem could not be mounted R/W :(                [ !! ]

Give root password for maintenance
(or type Control-D for normal startup):

Expected Results:  
Boot should proceed normally, and a bindmount of / should be created.

This appears to be caused by the equivalent of calling:
mount -o remount,rw /
(which gives the error "mount: /path/to/bind not mounted already, or bad option")
instead of:
mount -o remount,rw /dev/whatever_root_filesystem_is
(which correctly remounts /)
Comment 1 SpanKY gentoo-dev 2007-06-08 01:05:26 UTC
this is a util-linux mount/fstab thing, not a bug in our baselayout (and i dont think really a bug at all)

try rearranging the order between the real root and the bind root