# Hooks for Automating Systemd-Boot Kernel installs

**URL:** <https://forum.endeavouros.com/t/hooks-for-automating-systemd-boot-kernel-installs/13254>\
**Category:** Kernel, boot, graphics & hardware\
**Created:** [April 2, 2021, 7:20am UTC](https://forum.endeavouros.com/t/hooks-for-automating-systemd-boot-kernel-installs/13254 "2021-04-02T07:20:09Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 23, 2021, 10:02pm UTC](https://forum.endeavouros.com/t/hooks-for-automating-systemd-boot-kernel-installs/13254/21 "2021-07-23T22:02:15Z")

</div>

> [@Echoa](#):
>
> I dont use zen but does it use a different title besides “Arch Linux” and weird versioning in the conf file?

It is all about how you configure it, zen was just a random example. It is shorter to type than “hardened” 🤓

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [July 23, 2021, 10:05pm UTC](https://forum.endeavouros.com/t/hooks-for-automating-systemd-boot-kernel-installs/13254/22 "2021-07-23T22:05:07Z")

</div>

i suppose in my case TKG just has versioning that doesnt trip up sd-boot lol

On another note it also accepts machine id like “01234567890abcdef1234567890abdf0-\*” as the default entry also if anyone wants to try it that way

Even still i ended up tinkering with a script for a while when i really didnt need to 🙃, sd-boot is able to handle the situation better than i initially realized

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [July 23, 2021, 10:11pm UTC](https://forum.endeavouros.com/t/hooks-for-automating-systemd-boot-kernel-installs/13254/23 "2021-07-23T22:11:37Z")

</div>

Another thing it offers which im not sure on the limitations just yet is

bootctl set-default

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 23, 2021, 10:13pm UTC](https://forum.endeavouros.com/t/hooks-for-automating-systemd-boot-kernel-installs/13254/24 "2021-07-23T22:13:57Z")

</div>

> [@Echoa](#):
>
> On another note it also accepts machine id like “01234567890abcdef1234567890abdf0-\*” as the default entry also if anyone wants to try it that way

A real world example on my multi-boot machines looks like something like:

```plaintext
default 8926ef9acd564c9eb55c33c7102ff87a*lts.conf

```

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [July 23, 2021, 10:21pm UTC](https://forum.endeavouros.com/t/hooks-for-automating-systemd-boot-kernel-installs/13254/25 "2021-07-23T22:21:03Z")

</div>

might be a good idea to put together a small list of some real examples on how default entries can be structures (not necessarily you do it though). maybe as a wiki entry showing some good examples?

sd-boot seems to be pretty easy to deal with but if the bootctl set-default and pressing D options dont cover all the bases for multi-boot systems it might help to have some examples people can use to figure out how to setup their exact default. So far it covers every base of what the script i was doing could accomplish with my limited knowledge but mine was also limited itself.

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [July 24, 2021, 12:58am UTC](https://forum.endeavouros.com/t/hooks-for-automating-systemd-boot-kernel-installs/13254/26 "2021-07-24T00:58:18Z")

</div>

Opening post has been updated with bold text to make sure people do not use this method.

Again for anyone coming across this post do not us this but use [[Tutorial] Convert to systemd-boot](https://forum.endeavouros.com/t/tutorial-convert-to-systemd-boot/13290)

This is a welcome thread for talk regarding systemd-boot if you dont want to clutter daltos thread but please DO NOT use this as the other thread is much better

[Previous page](https://forum.endeavouros.com/t/hooks-for-automating-systemd-boot-kernel-installs/13254.md?page=1)
