Re: devtmpfs on /dev type devtmpfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Mon, Apr 4, 2016 at 10:02 AM, Paul Schroeder <paul.schroeder@xxxxxxxxxx> wrote:


On Fri, Apr 1, 2016 at 8:21 PM, Joe Zeff <joe@xxxxxxx> wrote:
On 04/01/2016 08:05 AM, Paul Schroeder wrote:
I tried both.  Neither solution seemed to keep the mount from happening.

Have you considered using umount to remove the unwanted mount in /etc/rc.d/rc.local?  It's not exactly elegant, but it should do the trick.

Yea.  That won't really work:

# umount /dev
umount: /dev: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

 
It would appear that the LXC config option for the container, lxc.automount, determines whether or not LXC decides to mount devtmpfs on /dev.  When lxc.automount = 1, it is obviously on and always does this.  After digging through the LXC code, if the option is not specified, LXC autodetects whether or not systemd is used inside the container.  If it is detected, LXC automatically turns automount on.  (I wish this had been documented somewhere.)  So to stop LXC from mounting /dev, one has to explicitly set lxc.automount = 0..

However, this causes problems inside the container, causing it to freeze on boot.  It would appear that systemd within my CentOS container is still trying to mount /dev when it can't.  I believe that I have all of the udev services masked properly, so this must be coming from somewhere else within systemd.  Any further ideas out there?

$ sudo lxc-start -n c7
Failed to mount devtmpfs at /dev: Permission denied
Failed to mount cgroup at /sys/fs/cgroup/systemd: Permission denied
[!!!!!!] Failed to mount API filesystems, freezing.

Thanks!  Paul...



--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux