Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lxc.mount.entry entries thrown away on config change #73

Closed
the-mars opened this issue Mar 19, 2015 · 2 comments
Closed

lxc.mount.entry entries thrown away on config change #73

the-mars opened this issue Mar 19, 2015 · 2 comments

Comments

@the-mars
Copy link

If I change something in an LXC container from LWP I am left alone with one lxc.mount.entry. And restarting my LXC will result in a system that sticks in its boot sequence.

Before editing the config it looks like:

lxc.mount = /var/lib/lxc/mycontainer/fstab
lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
lxc.mount.entry = sysfs sys sysfs defaults 0 0
lxc.mount.entry = /sys/fs/fuse/connections sys/fs/fuse/connections none bind,optional 0 0
lxc.mount.entry = /sys/kernel/debug sys/kernel/debug none bind,optional 0 0
lxc.mount.entry = /sys/kernel/security sys/kernel/security none bind,optional 0 0
lxc.mount.entry = /sys/fs/pstore sys/fs/pstore none bind,optional 0 0
lxc.tty = 4
lxc.pts = 1024
lxc.devttydir = lxc
...

After editing:

lxc.mount = /var/lib/lxc/mycontainer/fstab
lxc.mount.entry = /sys/fs/pstore sys/fs/pstore none bind,optional 0 0
lxc.tty = 4
lxc.pts = 1024
lxc.devttydir = lxc
...

The container can be made bootable by readding the missing lines.

I think your great LWP cannot handle multiple lxc.mount.entry lines. Maybe you can fix it in the same way as for the lxc.cgroup.devices.allow lines?

@claudyus
Copy link
Owner

So this [1] patch doesn't works or you are testing a previous version of lwp?

  1. 8133fae

@the-mars
Copy link
Author

Thanks for your reply.
Sorry, I was not running the latest version. Because auto updating in Ubuntu did reset the admin password continuously. But that is another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants