Systemd services assume presence of /run/ostree-booted which causes issues on the composefs backend #133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently there are a couple services which only run when
/run/ostree-bootedexists, this file does not exist on the composefs backend. Downstream projects are starting to build images (derived from https://gitlab.com/fedora/ostree/ci-test) using the composefs backend. It would be nice if we could accommodate this use case here.I think we should keep the existing check for
/run/ostree-bootedand addsome other check so the presence of either of them allows the service to trigger on images using the composefs and ostree backend.ConditionKernelCommandLine=composefsEDIT: after reading https://github.com/bootc-dev/bootc/pull/2437#discussion_r4051058800, I guess we should rather wait for bootc to make a decision on what to check for explicitly
Here are the 3 services it would affect:
We can probably remove this condition from all those units as they are only defined here and thus only included in our images and it should be safe to run those in all cases.
@renner Would you be OK making a PR for that?
One point that speaks against this that I can think of would be on live installation mediums downstream for Bazzite/Bluefin/Aurora at least, which are generated from the regular container images but are not booted with ostree/bootc with composefs backend, so they do still contain the services from here that are only supposed to trigger on the real booted system.
I'm not up-to-date on the behavior/state of generic bootc image builder created ISOs or official Fedora Atomic Desktops ones.
Removing the check now would mean that those who rely on them not firing off in certain scenarios could potentially break/change things in unexpected ways (I don't think anything bad would happen on those listed here though). It's not a big issue as it would be an easy workaround and a slight inconvenience to just delete/change those service files on the affected images.
I think it should not matter. They are workaround for missing cache update logic. The only thing that will happen is that a Live ISO with an empty or out of date cache will boot sightly slower.
The special Kinoite one will be removed in F46+
Thinking about this again, I see some services in bootc-base-images using
ConditionPathIsMountPoint=/sysrootinstead which should not change behavior and will also work on composefs @siosm wdyt?I'm fine with removing checks completely as well
Using
ConditionPathIsMountPoint=/sysrootsounds good to me.