[Bug 809221] Re: unable to mount ceph root at boot due to stripping of trailing slashes
Tv
809221 at bugs.launchpad.net
Tue Aug 7 23:31:48 UTC 2012
mountall calls strip_slashes for the device and the mount path. For
mount path, it makes sense. For mounting /dev/sda on something, having
/dev mounted first makes sense, and I guess for that you need
strip_slashes. Perhaps the strip slashes and that part of the dependency
logic should only trigger for bind mounts or things in /dev. A simpler
check for that might be "not a remote filesystem" -- you already have
is_remote, and for remote filesystems the device just isn't a local path
ever.
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/809221
Title:
unable to mount ceph root at boot due to stripping of trailing slashes
Status in “mountall” package in Ubuntu:
Triaged
Bug description:
When the mount device doesn't start with UUID= or LABEL= update_mount
will strip the trailing slashes from the mount device name. For most
situations this is fine but with Ceph it's quite possible that, for
example, 192.168.0.15:/ would be an acceptable mount device but mount
at boot fails since it passes 192.168.0.15: to mount.ceph, which then
complains about an invalid device.
I have attached a patch that resolves this issue. I don't know if it
is the best way to do it but it works for me okay and shouldn't have
an impact anywhere else.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/809221/+subscriptions
More information about the Ubuntu-sponsors
mailing list