[sandbox 00/10] Actually use host-image mounts on /

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

In the virt-sandbox documentation we had examples with host-image mounts
targetting /. However the / in the sandbox was still the host one. The
main goal of this patch series is to fix that problem. This will also
be needed to run docker container with libvirt-sandbox.

I also added some configure flags to disable lzma or zlib support at
build time. At least opensuse 13.2 doesn't have static lzma.

Cédric Bosdonnat (10):
  Allow disabling build with lzma.
  Allow disabling zlib support.
  Enable strcmp checks in libvirt-sandbox-init-qemu.c
  Copy init-common and all its deps to config subdir
  Remove init-common dependency on libvirt-sandbox.so
  init-qemu: extract the mounts.cfg entry mounting code
  qemu: use mounts targeting / as root
  Add function to check if there is a mount with / target
  Don't add sandbox:root device if we have a mount targetting /
  container builder: don't expose host rootfs if unneeded

 cfg.mk                                             |   2 +-
 configure.ac                                       |  37 ++++-
 libvirt-sandbox/Makefile.am                        |  41 +++--
 .../libvirt-sandbox-builder-container.c            |  22 +--
 libvirt-sandbox/libvirt-sandbox-builder-machine.c  | 136 +++++++++++++++--
 libvirt-sandbox/libvirt-sandbox-config-all.h       |  61 ++++++++
 .../libvirt-sandbox-config-interactive.c           |   2 +-
 .../libvirt-sandbox-config-mount-file.c            |   2 +-
 .../libvirt-sandbox-config-mount-guest-bind.c      |   2 +-
 .../libvirt-sandbox-config-mount-host-bind.c       |   2 +-
 .../libvirt-sandbox-config-mount-host-image.c      |   2 +-
 libvirt-sandbox/libvirt-sandbox-config-mount-ram.c |   2 +-
 libvirt-sandbox/libvirt-sandbox-config-mount.c     |   2 +-
 .../libvirt-sandbox-config-network-address.c       |   2 +-
 ...rt-sandbox-config-network-filterref-parameter.c |   2 +-
 .../libvirt-sandbox-config-network-filterref.c     |   2 +-
 .../libvirt-sandbox-config-network-route.c         |   2 +-
 libvirt-sandbox/libvirt-sandbox-config-network.c   |   2 +-
 .../libvirt-sandbox-config-service-generic.c       |   2 +-
 .../libvirt-sandbox-config-service-systemd.c       |   2 +-
 libvirt-sandbox/libvirt-sandbox-config-service.c   |   2 +-
 libvirt-sandbox/libvirt-sandbox-config.c           |  23 ++-
 libvirt-sandbox/libvirt-sandbox-config.h           |   1 +
 libvirt-sandbox/libvirt-sandbox-init-common.c      |   5 +-
 libvirt-sandbox/libvirt-sandbox-init-qemu.c        | 166 +++++++++++++++++----
 libvirt-sandbox/libvirt-sandbox.h                  |  18 +--
 libvirt-sandbox/libvirt-sandbox.sym                |   1 +
 27 files changed, 442 insertions(+), 101 deletions(-)
 create mode 100644 libvirt-sandbox/libvirt-sandbox-config-all.h

-- 
2.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux