deploy: Support an empty `/etc` and populated `/usr/etc`
authorColin Walters <walters@verbum.org>
Sat, 29 Jul 2023 12:47:47 +0000 (08:47 -0400)
committerColin Walters <walters@verbum.org>
Sat, 29 Jul 2023 12:47:54 +0000 (08:47 -0400)
commit0406fd3912d6e54f94698c2ad2a6da6c477a4eba
tree18ddfc058c37b29e68d1eaf8e70cf8116d34dfb0
parenta2663e8041ffadb764c71a055dd63dba4e7ff378
deploy: Support an empty `/etc` and populated `/usr/etc`

In preparation for support for a transient `/etc`:
https://github.com/ostreedev/ostree/issues/2868
particularly in combination with composefs.

Basically it's just much more elegant if we can directly mount
an overlayfs on the *empty* `etc` directory, using `usr/etc` as
the lower.

In the composefs case, we'd have to mount the composefs overlayfs
itself writable (and call `mkdir`) *just* so we can make that
empty `etc` directory which is ugly.
Makefile-tests.am
src/libostree/ostree-sysroot-deploy.c
tests/test-admin-deploy-emptyetc.sh [new file with mode: 0755]