Bug 58128 - systemd-nspawn: allow remount/bind user selected directories to container
Summary: systemd-nspawn: allow remount/bind user selected directories to container
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-11 10:25 UTC by Jaroslav Kysela
Modified: 2013-03-06 16:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
The proposed patch (7.60 KB, text/plain)
2012-12-11 10:25 UTC, Jaroslav Kysela
Details

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.