Skip to content

Instantly share code, notes, and snippets.

@YumingChang02
Created December 19, 2023 02:56
Show Gist options
  • Save YumingChang02/744087806e1fd5c37c5345a669d0ee35 to your computer and use it in GitHub Desktop.
Save YumingChang02/744087806e1fd5c37c5345a669d0ee35 to your computer and use it in GitHub Desktop.
pacman hook to changemod initramfs for pxe server to read
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = usr/lib/modules/*/vmlinuz
Target = usr/lib/initcpio/*
Target = usr/lib/firmware/*
Target = usr/src/*/dkms.conf
[Action]
Description = Add read permission for syslinux PXE boot ...
When = PostTransaction
Exec = /usr/bin/chmod -R a+r /boot
NeedsTargets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment