Go to file
Robin Schneider e0814b481f
bind-dirs: Create ro if bind target exists
Before, the script skipped none existing ro paths even if the path
existed below /rw. This would require someone who wants to use bind-dirs
only in TemplateBasedVM to ensure that the paths exist before the
bind-dirs script gets called.

This patch changes this behavior so that if the path exists below /rw, it
is ensured that an (empty) file/directory is present in ro (where the
corresponding path from /rw is then bind mounted over).

Requires: Docs update. I can open a PR when this PRs looks good.
Fixes limitation: "Does not work if the file / folder in question does
  not already exist in the root image. I.e. a file that does not exist in
  the root image cannot be bind mounted in the TemplateBasedVM."
Example use case: https://github.com/debops/ansible-persistent_paths
Tested on: Qubes OS 3.2; Debian 8 TemplateBasedVM (and Template)
Related to: https://github.com/QubesOS/qubes-issues/issues/2661
2017-03-16 12:56:54 +01:00
archlinux archlinux: add missing qubes-rpc dependencies 2017-01-29 15:37:15 +01:00
autostart-dropins Merge branch 'autostart-dropins' 2015-09-02 01:16:19 +02:00
debian version 3.2.16 2017-03-07 23:04:47 +01:00
doc Keep Makefile DRY 2016-11-10 06:49:01 -05:00
init Use online resize2fs, and run filesystem check only when needed 2017-02-27 04:21:59 +01:00
misc Update Xen bug count in sudoers comment 2016-12-04 16:29:01 -08:00
network Merge remote-tracking branch 'qubesos/pr/38' 2017-02-13 00:03:43 +01:00
patches.debian Stop anacron from starting in Debian using existing constraint on cron 2017-02-05 23:36:27 +00:00
pkgs archlinux: created build scripts 2013-04-17 01:22:32 +02:00
qrexec qrexec: add service argument support 2016-03-27 04:30:44 +02:00
qubes-rpc Shut down after update only if it's a template. 2017-01-14 22:20:51 +00:00
rpm_spec systemd: place user dropins in /usr/lib instead of /lib 2017-02-21 01:37:24 +01:00
vm-init.d Clean up early initialization and setup of /rw 2016-10-23 20:19:51 +00:00
vm-systemd bind-dirs: Create ro if bind target exists 2017-03-16 12:56:54 +01:00
.gitignore gitignore: fix binary packages declaration 2014-07-27 06:11:14 +02:00
.travis.yml travis: drop debootstrap workaround 2016-12-04 21:28:13 +01:00
debian-quilt debian: Refactor Debian quilt packaging for xen 2015-02-11 08:02:55 -05:00
LICENSE Added LICENSE 2010-04-05 21:21:27 +02:00
Makefile systemd: place user dropins in /usr/lib instead of /lib 2017-02-21 01:37:24 +01:00
Makefile.builder Move trusty check and locales-all fix inside source-debian-quilt-copy-in 2017-02-13 22:25:47 +00:00
series-debian-vm.conf Stop anacron from starting in Debian using existing constraint on cron 2017-02-05 23:36:27 +00:00
version version 3.2.16 2017-03-07 23:04:47 +01:00