
후크 스크립트에 대상 변수를 전달할 수 있습니까?
내가 실행 중인 커널(linux-hardened)이 아닌 다른 커널(linux)을 업데이트할 때 커널 모듈 저장 메커니즘을 구현해야 합니다.
[Trigger]
Operation = Upgrade
Type = Package
Target = linux
Target = linux-hardened
Target = linux-lts
Target = linux-zen
[Action]
Description = Save Linux kernel modules
When = PreTransaction
Depends = rsync
Exec = /bin/sh pacman-linux-update-modules-pre.sh $Target
답변1
man 5 alpm-hooks
그리고 NeedsTargets 지정자를 살펴보세요.
맨페이지는 온라인에서 읽을 수 있습니다.https://jlk.fjfi.cvut.cz/arch/manpages/man/alpm-hooks.5