rpm-ostree/src/daemon
Colin Walters 34b5a004a8 daemon: Add a sanitycheck(/bin/true) before we deploy a tree
This is a followup to https://github.com/projectatomic/rpm-ostree/pull/888
but more comprehensive; in the layering case, the sanitycheck runs
after all the `%posttrans` scripts, so we'll get a consistent error message
for the `rm -rf /` test.

We also do the sanitycheck for the "pure ostree" case, as well as cases
where we didn't actually layer packages (including `ex override remove` as
well as simply regenerating an initrd).

There's obviously a lot more we could do in a sanitycheck; as I say in the
comment it's tempting to consider trying to boot systemd (in a fully volatile
config), but for now let's do this. In the end of course the admin has rollback
too.

Closes: #892
Approved by: jlebon
2017-07-27 17:58:58 +00:00
..
org.projectatomic.rpmostree1.conf dbus: drop root check on RegisterClient() 2017-07-27 17:10:41 +00:00
org.projectatomic.rpmostree1.policy dbus: drop root check on RegisterClient() 2017-07-27 17:10:41 +00:00
org.projectatomic.rpmostree1.service.in
org.projectatomic.rpmostree1.xml
rpm-ostreed-stub.sh.in
rpm-ostreed.service.in
rpmostree-package-variants.c
rpmostree-package-variants.h
rpmostree-sysroot-core.c
rpmostree-sysroot-core.h
rpmostree-sysroot-upgrader.c daemon: Add a sanitycheck(/bin/true) before we deploy a tree 2017-07-27 17:58:58 +00:00
rpmostree-sysroot-upgrader.h
rpmostreed-daemon.c daemon: factor out uid fetching 2017-07-27 17:10:41 +00:00
rpmostreed-daemon.h daemon: factor out uid fetching 2017-07-27 17:10:41 +00:00
rpmostreed-deployment-utils.c codebase: partial porting to new style 2017-07-07 20:03:28 +00:00
rpmostreed-deployment-utils.h
rpmostreed-errors.c
rpmostreed-errors.h
rpmostreed-os-experimental.c
rpmostreed-os-experimental.h
rpmostreed-os.c dbus: drop root check on RegisterClient() 2017-07-27 17:10:41 +00:00
rpmostreed-os.h
rpmostreed-sysroot.c dbus: drop root check on RegisterClient() 2017-07-27 17:10:41 +00:00
rpmostreed-sysroot.h dbus: drop root check on RegisterClient() 2017-07-27 17:10:41 +00:00
rpmostreed-transaction-livefs.c
rpmostreed-transaction-monitor.c
rpmostreed-transaction-monitor.h
rpmostreed-transaction-types.c daemon: Avoid "Updating from: (null)" message 2017-07-13 20:14:31 +00:00
rpmostreed-transaction-types.h
rpmostreed-transaction.c codebase: partial porting to new style 2017-07-07 20:03:28 +00:00
rpmostreed-transaction.h
rpmostreed-types.h
rpmostreed-utils.c
rpmostreed-utils.h