]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/nspawn/nspawn-mount.c
nspawn: Add support for sysroot pivoting (#5258)
authorPhilip Withnall <philip@tecnocode.co.uk>
Wed, 8 Feb 2017 15:54:31 +0000 (15:54 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Feb 2017 15:54:31 +0000 (16:54 +0100)
commitb53ede699cdc5233041a22591f18863fb3fe2672
tree728b42c4061e2319671a7596128e6ba51ac9f083
parent6a909d41e1835a77ff65fe93002245faaaf6047a
nspawn: Add support for sysroot pivoting (#5258)

Add a new --pivot-root argument to systemd-nspawn, which specifies a
directory to pivot to / inside the container; while the original / is
pivoted to another specified directory (if provided). This adds
support for booting container images which may contain several bootable
sysroots, as is common with OSTree disk images. When these disk images
are booted on real hardware, ostree-prepare-root is run in conjunction
with sysroot.mount in the initramfs to achieve the same results.
man/systemd-nspawn.xml
man/systemd.nspawn.xml
src/nspawn/nspawn-gperf.gperf
src/nspawn/nspawn-mount.c
src/nspawn/nspawn-mount.h
src/nspawn/nspawn-settings.c
src/nspawn/nspawn-settings.h
src/nspawn/nspawn.c