rpm-ostree/tests/vmcheck
Colin Walters a20fac3e9c core: Fix override-remove from UsrMove compat paths /lib,/bin etc
I'm working on supporting `override replace ./kernel-*.rpm`:
https://github.com/projectatomic/rpm-ostree/issues/946

But after battling the "installonly" logic in libdnf, I was confused why we
still had the files in `/usr/lib/modules`. It turned out to be because we only
remove files in `/usr`, but the code didn't handle UsrMove compat links.

There are a variety of approaches to fix this.  Obviously a lot
of things get nicer in jigdo mode as we do UsrMove canonicalization
on import, and we could change this code to walk the imported pkg
ostree ref.

Another approach would be to walk the initial symlink, and check whether or not
it's the same as `/usr` (i.e. let the kernel do it).

For now though, what I chose to do was to scan the rootfs and find the UsrMove
compat links (i.e. we avoid hardcoding them again here).  This is
fewer syscalls than the above and works well in practice.

Closes: #1226
Approved by: jlebon
2018-01-31 13:09:49 +00:00
..
fetch-journal.sh vmcheck: prep for parallel runs 2017-03-13 00:42:13 +00:00
install.sh tests: Correctly error out if some part of install.sh fails 2017-11-29 14:42:25 +00:00
multitest.py multitest.py: error if no hosts given 2017-08-15 15:40:35 +00:00
overlay.sh Initial support for automatic updates 2018-01-27 23:52:43 +00:00
sync.sh daemon: add RPMOSTREE_DEBUG_DISABLE_DAEMON_IDLE_EXIT 2017-10-12 15:35:44 +00:00
test-autoupdate.sh Initial support for automatic updates 2018-01-27 23:52:43 +00:00
test-basic.sh app/status: support JSONPath queries 2017-12-21 03:59:54 +00:00
test-db.sh app/db-diff: make use of new db API 2017-12-30 11:32:38 +00:00
test-download-only.sh Lift 'override' out of experimental 2017-11-08 03:35:08 +00:00
test-initramfs.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-kernel-args.sh tests/vmcheck: add deploy-index and proc-cmd test for kargs 2017-11-06 18:49:36 +00:00
test-layering-basic.sh client: Don't output progress bars on non-ttys 2018-01-29 21:28:07 +00:00
test-layering-gpg.sh tests/libvm: use rsync and add yumrepo mode 2017-10-06 18:20:59 +00:00
test-layering-local.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-non-root-caps.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-relabel.sh core: Change relabeling to use libostree's SELinux support 2017-12-08 15:01:32 +00:00
test-layering-relayer.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-rpmdb.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-scripts.sh scripts: Ignore %verifyscript 2018-01-19 15:32:09 +00:00
test-layering-unified.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-livefs.sh WIP: Implement ex livefs --replace 2017-10-05 13:19:20 +00:00
test-override-local-replace.sh Lift 'override' out of experimental 2017-11-08 03:35:08 +00:00
test-override-remove.sh core: Fix override-remove from UsrMove compat paths /lib,/bin etc 2018-01-31 13:09:49 +00:00
test.sh Initial support for automatic updates 2018-01-27 23:52:43 +00:00