是否可以将目标变量传递给钩子脚本?
需要它的内核模块保存机制,当另一个内核被更新(linux),而不是我的运行一个(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发布于 2018-12-21 20:12:33
man 5 alpm-hooks并查看NeedsTargets说明符。
该手册可在https://jlk.fjfi.cvut.cz/arch/manpages/man/alpm-hooks.5在线阅读。
https://unix.stackexchange.com/questions/490386
复制相似问题