[systemd-devel] systemd-nspawn -- bind multiple directories

arnaud gaboury arnaud.gaboury at gmail.com
Mon Apr 27 01:19:30 PDT 2015


To install a Fedora container from the raw image in my host Archlinux,
I can do this:

# systemd-nspawn -M Fedora-Cloud-Base-22_Beta-20150415.x86_64.raw --
bind=/var/lib/machines/enl:/mnt

Now for the use of two btrfs subvol, I would like to bind
/var/lib/machines/enl/{etc,var}

Does the systemd bind options accept multi directories to bind?
 Soemthing like this :

# systemd-nspawn -M Fedora-Cloud-Base-22_Beta-20150415.x86_64.raw --
bind=/var/lib/machines/enl:/mnt /var/lib/machines/enl/etc:/mnt/etc
/var/lib/machines/enl/var:/mnt/var

Thank you for hints

-- 

google.com/+arnaudgabourygabx


More information about the systemd-devel mailing list