From 93a3764fb4d6465a16b5be570b00d5d5df5643d3 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 30 Jul 2025 23:57:48 +0800 Subject: hook no need any more With the hook now linux-megi upgrade seems no problem. From https://matrix.to/#/!lmoJhRvQcNTuGtHgry:kde.org/$FWkLUkcTd5zH-8sssWP9p5jT5C9W2BZPlDKVc4WZjcE?via=kde.org&via=matrix.org&via=tchncs.de : "It seems there's a new way to trigger mkinitcpio after linux-megi upgrade in https://github.com/dreemurrs-embedded/danctnix-packages/blob/16b7cd6350d272edf2f6e9ef83afdc481e5d5d37/pine64/linux-megi/PKGBUILD#L110-L113 committed on Apr 4, 2024 in this commit https://github.com/dreemurrs-embedded/danctnix-packages/commit/5e8caa55c81b916f9cf437082d82843681213311#diff-08b52e5bad72f7ed6fc775bdfb607ab91afca57c0d056750d08ab6bf9b7bbc90R110. So I guess my old dirty workaround is not needed any more. I will try next several times linux-megi upgrades." --- etc/myconf/cfgl_meta | 1 - etc/pacman.d/hooks/linux-megi-mkinitcpio.hook | 16 ---------------- 2 files changed, 17 deletions(-) delete mode 100644 etc/pacman.d/hooks/linux-megi-mkinitcpio.hook (limited to 'etc') diff --git a/etc/myconf/cfgl_meta b/etc/myconf/cfgl_meta index 09bd82cf..751b7357 100644 --- a/etc/myconf/cfgl_meta +++ b/etc/myconf/cfgl_meta @@ -34,7 +34,6 @@ 755 root root //etc/pacman.d/gnupg 644 root root //etc/pacman.d/gnupg/gpg.conf 755 root root //etc/pacman.d/hooks -644 root root //etc/pacman.d/hooks/linux-megi-mkinitcpio.hook 644 root root //etc/pacman.d/mirrorlist 777 root root //etc/resolv.conf 644 root root //etc/services diff --git a/etc/pacman.d/hooks/linux-megi-mkinitcpio.hook b/etc/pacman.d/hooks/linux-megi-mkinitcpio.hook deleted file mode 100644 index 24d44ab7..00000000 --- a/etc/pacman.d/hooks/linux-megi-mkinitcpio.hook +++ /dev/null @@ -1,16 +0,0 @@ -# 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 - -- cgit v1.2.3-70-g09d2