ostree/tests/kolainst/destructive
Dan Nicholson f3db79e7fa finalize-staged: Ensure /boot automount doesn't expire
If `/boot` is an automount, then the unit will be stopped as soon as the
automount expires. That's would defeat the purpose of using systemd to
delay finalizing the deployment until shutdown. This is not uncommon as
`systemd-gpt-auto-generator` will create an automount unit for `/boot`
when it's the EFI System Partition and there's no fstab entry.

To ensure that systemd doesn't stop the service early when the `/boot`
automount expires, introduce a new unit that holds `/boot` open until
it's sent `SIGTERM`. This uses a new `--hold` option for
`finalize-staged` that loads but doesn't lock the sysroot. A separate
unit is used since we want the process to remain active throughout the
finalization run in `ExecStop`. That wouldn't work if it was specified
in `ExecStart` in the same unit since it would be killed before the
`ExecStop` action was run.

Fixes: #2543
2022-08-30 09:16:39 -06:00
..
basic-misc.sh main: Also support CLI extensions in `/usr/libexec/libostree/ext` 2022-01-11 20:13:33 -05:00
boot-automount.sh finalize-staged: Ensure /boot automount doesn't expire 2022-08-30 09:16:39 -06:00
data tests/kolainst: Avoid recursive symlinks 2022-01-25 16:44:39 -05:00
deployment-lint deploy: Warn if we find content in the deployment's /var 2021-06-10 07:33:17 -04:00
itest-bare-root.sh tests/kola: Move to tests/kolainst 2020-05-27 15:16:50 +00:00
itest-deploy-selinux.sh tests/kola: Move to tests/kolainst 2020-05-27 15:16:50 +00:00
itest-label-selinux.sh bin/commit: Fix --tree=tar with --selinux-policy 2021-09-30 11:44:27 -04:00
kargs-edit-in-place.sh Add test to verify `ostree admin kargs edit-in-place` working 2022-07-12 20:56:18 +08:00
overlay-initrds.sh lib/deploy: Add support for overlay initrds 2020-09-30 13:29:32 -04:00
staged-delay.sh ci: Fix staged-delay to work with newer systemd 2021-05-25 16:28:32 -04:00
staged-deploy.sh tests/kolainst/staged-deploy: parse `rpm-ostree status --json` instead 2022-08-15 17:50:11 -04:00
unlock-transient.sh Add "transient" unlock 2020-08-07 18:57:56 +00:00
var-mount.sh tests/var-mount: tweak test setup 2021-10-19 08:03:09 +00:00