Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is basic the right systemd target or should there be others? #21

Open
dradetsky opened this issue Sep 15, 2022 · 1 comment
Open

Is basic the right systemd target or should there be others? #21

dradetsky opened this issue Sep 15, 2022 · 1 comment

Comments

@dradetsky
Copy link

I'm looking into a way to keep my last working kernel around in Arch Linux, so if an update breaks something I don't have to mess around with the rescue system. So I'll want to copy the bzImage &c to e.g. /boot/prev/vmlinuz-linux, and ensure that its modules are not deleted unless the new kernel boots successfully.

I don't have a very strong understanding of systemd, so this might sound kind of stupid, but: If I understand correctly, the cleanup service will attempt to run once we've successfully reached basic.target, and will not run if we do not reach that target. Which sounds fine except that I'm not totally sure that basic.target will meet the requirements for what every user considers as "booting successfully." Other options include

  • multi-user.target
  • graphical.target
  • boot-complete.target

Admittedly, I don't really understand that last one entirely.

In any case, maybe we should ship other versions of the cleanup service which depend on multi-user or graphical, and the user can enable whichever one best meets his needs.

Then again, I can see how you could make the case that these other versions of the cleanup service belong more in whatever keep-the-last-working-kernel package I find/create, and not here, but maybe not.

@WhyNotHugo
Copy link

It should point to default.target. This is usually a symlink. On my setup it's a link to graphical.target, on other is might be a link to multi-user.target, or simply basic.target.

John-Gee added a commit to John-Gee/kernel-modules-hook that referenced this issue Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants