diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-12-01 17:21:47 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-12-01 17:43:00 +0100 |
commit | 0ccd0bcf04496867c74f68ddb2de403c7d09c0bf (patch) | |
tree | ec07e51dc2147d2c60aed9c98dc5cef30ea2dcaf /functions | |
parent | b8f596eee60bfec4efced5b2a448f1e4ca7ee189 (diff) | |
download | mkinitcpio-0ccd0bcf04496867c74f68ddb2de403c7d09c0bf.tar.gz mkinitcpio-0ccd0bcf04496867c74f68ddb2de403c7d09c0bf.tar.xz |
Load build and run hooks from /etc/initcpio
This lets users shoot themselves in the foot more easily, as they can
put their own modified hooks into /etc/initcpio/{hooks,install} to
override those shipped by the distro in /usr/lib/initcpio.
To make debugging easier, include the full path of the hook being used
when mkinitcpio runs in verbose mode.
Implements FS#37796.
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -709,7 +709,11 @@ run_build_hook() { fi # run - msg2 "Running build hook: [%s]" "${script##*/}" + if (( _optquiet )); then + msg2 "Running build hook: [%s]" "${script##*/}" + else + msg2 "Running build hook: [%s]" "$script" + fi build # if we made it this far, return successfully. Hooks can |