You are not logged in.

#1 2016-06-18 15:37:17

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

systemd-boot-pacman-hook

Hi!

I just created a pacman-hook to trigger a systemd-boot update every time systemd gets updated.
This is useful (at least for me) because systemd-boot needs to be manually updated, and i keep forgetting it, see here: https://wiki.archlinux.org/index.php/Sy … t#Updating.

As of now, it needs esp partition to be in its default location (ie: /boot).
If you're using a different esp mount point, please change the "Exec" line in "/etc/pacman.d/systemd-boot.hook" from

Exec = /usr/bin/bootctl update

to

Exec = /usr/bin/bootctl --path=$YOUR_ESP_PARTITION update

Hope someone will find this useful! It is on AUR: https://aur.archlinux.org/packages/syst … acman-hook .

Bye!

Offline

#2 2016-06-18 16:01:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: systemd-boot-pacman-hook

I've been running a similar hook for quite a while now. A couple of notes:

This shouldn't be running on systemd install
Packages should install hooks to /usr, not to /etc.

Offline

#3 2016-06-18 16:11:36

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: systemd-boot-pacman-hook

You're right, thanks!
Fixed and fixed smile

Offline

Board footer

Powered by FluxBB