diff options
author | Morten Linderud <morten@linderud.pw> | 2019-09-10 22:54:25 +0200 |
---|---|---|
committer | Giancarlo Razzolini <grazzolini@archlinux.org> | 2019-10-04 19:29:17 +0200 |
commit | 66ab66ebccfc66a8d3afd6f331b4548f6cd973a7 (patch) | |
tree | 5b060bb633d8e9a10dcf92e65e6a8da2d35cdf51 /mkinitcpio | |
parent | 06bc15f71a3e627b62c8de589f8c511deaaca791 (diff) | |
download | mkinitcpio-66ab66ebccfc66a8d3afd6f331b4548f6cd973a7.tar.gz mkinitcpio-66ab66ebccfc66a8d3afd6f331b4548f6cd973a7.tar.xz |
Add flag to specify where to look for hooks.
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-x | mkinitcpio | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -56,6 +56,7 @@ usage: ${0##*/} [options] -s, --save Save build directory. (default: no) -d, --generatedir <dir> Write generated image into <dir> -t, --builddir <dir> Use DIR as the temporary build directory + -D, --hookdir <dir> Specify where to look for hooks. -V, --version Display version information and exit -v, --verbose Verbose output (default: no) -z, --compress <program> Use an alternate compressor on the image @@ -408,6 +409,11 @@ while :; do shift _optmoduleroot=$1 ;; + -D|--hookdir) + shift + _d_hooks="$(readlink -f "$1")/hooks" + _d_install="$(readlink -f "$1")/install" + ;; --) shift break 2 |