keep container from marking shared rootfs readonly on shutdown
Bug #942325 reported by
Serge Hallyn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn |
Bug Description
When a container shuts down, it tries to
mount -o remount,ro /
If the container's '/' is a separate blockdev, that's fine.
If the container's '/' is on the host's rootfs, that's usually fine - because something, somewhere, on the system will have a file open which will make the readonly remount fail.
But if the container rootfs is a directory under /var/lib/
lxc-start needs to hold a file open for write for the duration of the container's run. '${rootfs}.hold' should be good.
Related branches
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in lxc (Ubuntu): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
To post a comment you must log in.
Fix committed to ubuntu:lxc