Bug 58128

Summary: systemd-nspawn: allow remount/bind user selected directories to container
Product: systemd Reporter: Jaroslav Kysela <perex>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: The proposed patch

Description Jaroslav Kysela 2012-12-11 10:25:06 UTC
Created attachment 71325 [details]
The proposed patch

It might be handy to allow build own filesystem layout in the container. Add command line arguments to the systemd-nspawn program to allow that.
Comment 1 Lennart Poettering 2013-01-14 23:21:42 UTC
Hmmm, wouldn't it suffice to bind mount them in the host fs too, and let nspawn inherit them?

(I am not totally against this patch or something like it, just wondering...)
Comment 2 Lennart Poettering 2013-03-06 16:27:36 UTC
This is fixed in git, but differently. 

There's now --bind= and --bind-ro= which work similar but slightly different from your patch.

Thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.