ostree/tests/kolainst
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
..
data-shared tests/kolainst: Avoid recursive symlinks 2022-01-25 16:44:39 -05:00
destructive finalize-staged: Ensure /boot automount doesn't expire 2022-08-30 09:16:39 -06:00
nondestructive tests/kolainst: Avoid recursive symlinks 2022-01-25 16:44:39 -05:00
.gitignore tests/inst: Add destructive test framework 2020-08-17 14:34:04 +00:00
destructive-stamp.ign tests/inst: Add destructive test framework 2020-08-17 14:34:04 +00:00
install-wrappers.sh tests/inst: Add destructive test framework 2020-08-17 14:34:04 +00:00
Makefile tests/inst: Fix install rules for ostree-rs merger 2022-05-09 12:57:40 -04:00
README.md tests/kola: Move to tests/kolainst 2020-05-27 15:16:50 +00:00