diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-07-30 23:57:35 +0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-07-30 23:57:35 +0800 |
commit | 3c29496afd1ca2a2087afe1ee420253606aacb66 (patch) | |
tree | 4424453506cf19ef5cb62cfb9ad4c59fe67ac85b /configs/configs_root_dir/etc/pacman.d/hooks/linux-megi-mkinitcpio.hook | |
parent | f65a1febd16f08b6476a21f617076417810918a1 (diff) |
old hooks no need any more
Diffstat (limited to 'configs/configs_root_dir/etc/pacman.d/hooks/linux-megi-mkinitcpio.hook')
-rw-r--r-- | configs/configs_root_dir/etc/pacman.d/hooks/linux-megi-mkinitcpio.hook | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configs/configs_root_dir/etc/pacman.d/hooks/linux-megi-mkinitcpio.hook b/configs/configs_root_dir/etc/pacman.d/hooks/linux-megi-mkinitcpio.hook new file mode 100644 index 0000000..109c2f0 --- /dev/null +++ b/configs/configs_root_dir/etc/pacman.d/hooks/linux-megi-mkinitcpio.hook @@ -0,0 +1,15 @@ +# Sometimes after linux-megi upgrade, reboot results into osk-sdl errors so I can't decrypt FDE. +# Maybe it is because linux-megi does not have `/usr/lib/modules/*/vmlinuz`, this cause /usr/share/libalpm/hooks/90-mkinitcpio-install.hook to not run when linux-megi upgrade, which cause mkinitcpio not run. +# Also, 90-linux-megi.hook does not set linux-megi as target and it seems cause it not running when linux-megi upgrade. +# I'm not sure what's the cause of the issue. This pacman hook is just a dirty workaround, because it may cause mkinitcpio run twice. +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = linux-megi + +[Action] +Description = My workaround to mkinitcpio after linux-megi upgrade... +When = PostTransaction +Exec = /usr/bin/mkinitcpio -P +Depends = linux-megi |