You are not logged in.
Hi All,
I've recently had an issue where an update on packages related to the kernel (nvidia drivers for example) left my Arch installation unbootable. I tried going back to my old linux installation (which I still had intact in another drive and used to install my current Arch installation), chroot into the current Arch installation, and reinstall the linux package.
It worked like a charm. This happened again, and I used the same solution. After that, I took the precaution of reinstalling the kernel's package every time something related was installed, after installing the other stuff.
Of course he significant thing that reinstalling the kernel's package does is to run mkinitcpio. I just reinstalled the kernel's package as a precaution, and noticed that mkinitcpio is ran on the main package installation, not as a post-transaction hook.
Would having it run in the "post-transaction hooks" part solve the issue here? I decided to consult here before opening a bug in the bugtracker, because this behaviour may be by design and I'm not sure.
Offline
It is by design. If you need to rebuild the initramfs after an update, make your own hook.
Offline
example of a pacman hook for mkinitcpio, it will run after every update of systemd, you can replace it by another name package ( Target section ) :
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = systemd
[Action]
Description = Updating ramdisk with mkinitcpio...
When = PostTransaction
Exec = /usr/bin/mkinitcpio -p linux
Last edited by Potomac (2016-08-05 18:21:44)
Offline