summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-07 04:39:04 +0200
committerGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-07 04:39:04 +0200
commitf1e756f78d0e87d422abe6b3bcd5bff61442cc2b (patch)
tree1949aa1c3d245fee42313a7e8337930c1e5fc7e9
parent6b7427861b923560c10184ba92df2e7cc13ac258 (diff)
downloadmkinitcpio-f1e756f78d0e87d422abe6b3bcd5bff61442cc2b.tar.gz
mkinitcpio-f1e756f78d0e87d422abe6b3bcd5bff61442cc2b.tar.xz
Split the hookdir var creation and also add the hookdir option to the optparser.
-rwxr-xr-xmkinitcpio7
1 files changed, 4 insertions, 3 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 06c5673..f5f03d5 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -14,7 +14,8 @@ _f_functions=functions
_f_config=mkinitcpio.conf
_d_hooks="$PWD/hooks:/usr/lib/initcpio/hooks:/lib/initcpio/hooks"
_d_install="$PWD/install:/usr/lib/initcpio/install:/lib/initcpio/install"
-_d_flag_{hooks,install}=
+_d_flag_hooks=
+_d_flag_install=
_d_firmware=({/usr,}/lib/firmware/updates {/usr,}/lib/firmware)
_d_presets=mkinitcpio.d
@@ -316,8 +317,8 @@ process_preset() (
trap 'cleanup 130' INT
trap 'cleanup 143' TERM
-_opt_short='A:c:g:H:hk:nLMPp:r:S:sd:t:Vvz:'
-_opt_long=('add:' 'addhooks:' 'config:' 'generate:' 'hookhelp:' 'help'
+_opt_short='A:c:D:g:H:hk:nLMPp:r:S:sd:t:Vvz:'
+_opt_long=('add:' 'addhooks:' 'config:' 'generate:' 'hookdir': 'hookhelp:' 'help'
'kernel:' 'listhooks' 'automods' 'moduleroot:' 'nocolor' 'allpresets'
'preset:' 'skiphooks:' 'save' 'generatedir:' 'builddir:' 'version' 'verbose' 'compress:')