lxc-start-ephemeral is not all ephemeral
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
The directories mounted both using the ephemeral's fstab and using -b are not ephemeral. Changes to them persist on the filesystem, and are thus shared across other ephemeral instances that mount the same directories.
We have a branch that addresses this concern. We took the approach that -b should bind ephemeral directories; *and* if the destination directory is in the ephemeral's inherited fstab, we disable that mount from the fstab.
Thus, if a base container's fstab mounts proc, sys, and /home/gary, and you pass "-b /home/gary" to lxc-start-
Related branches
- Ubuntu branches: Pending requested
-
Diff: 140 lines (+50/-20)2 files modifieddebian/changelog (+8/-0)
debian/local/lxc-start-ephemeral (+42/-20)
Changed in lxc (Ubuntu): | |
importance: | Undecided → High |
Changed in lxc (Ubuntu): | |
status: | New → Fix Released |
Hi Gary,
if that's what you want I'll happily import the branch, but my understanding was that the -b directory was meant as a way to copy the end result to the host.
The branch addressing this isn't linked to this bug yet. Can you make sure to add a changelog entry with a (LP: #951150) and push, so that it will link to this bug?
thanks,
-serge