diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index 08467df..e26a08b 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -592,6 +592,13 @@ chmod +x /usr/bin/aurupdater # setcap-ping setcap cap_net_raw+ep /bin/ping +# systemd-manjaro_update-bootloader +cp /opt/${repo}/update-bootloader ${mountpoint}/usr/bin/update-bootloader +chmod +x /usr/bin/update-bootloader + + + + # openvpn-reconnect #cp /opt/${repo}/openvpn-reconnect /usr/bin/openvpn-reconnect diff --git a/pacman-hooks/systemd-bootloader-update.hook b/pacman-hooks/systemd-bootloader-update.hook new file mode 100644 index 0000000..5e8b848 --- /dev/null +++ b/pacman-hooks/systemd-bootloader-update.hook @@ -0,0 +1,12 @@ +[Trigger] +Operation = Remove +Operation = Upgrade +Type = Package +Target = linux +Target = grub + +[Action] +Depends = coreutils +Depends = bash +When = PostTransaction +Exec = /usr/bin/bash -c '/usr/bin/update-bootloader'