From b9c0480fcd37bf021383a9ba7c3e2e81f925d510 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 3 Mar 2012 13:38:38 -0500 Subject: mkinitcpio: allow -S to be specified multiple times Signed-off-by: Dave Reisner --- mkinitcpio | 4 +++- mkinitcpio.8.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mkinitcpio b/mkinitcpio index 9d59f0b..58979bf 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -120,7 +120,9 @@ while getopts ':c:k:sb:g:p:m:nvH:LMhS:t:z:' arg; do p) PRESET=$OPTARG ;; n) COLOR=0 ;; v) QUIET=0 ;; - S) IFS=, read -r -a SKIPHOOKS <<< "$OPTARG" ;; + S) IFS=, read -r -a skip <<< "$OPTARG" + SKIPHOOKS+=("${skip[@]}") + unset skip ;; H) if script=$(find_in_dirs "$OPTARG" "${INSTDIR[@]}"); then . "$script" if [[ $(type -t help) != function ]]; then diff --git a/mkinitcpio.8.txt b/mkinitcpio.8.txt index 9a2d920..1eb42a8 100644 --- a/mkinitcpio.8.txt +++ b/mkinitcpio.8.txt @@ -64,6 +64,7 @@ Options *-S* 'hooks':: Skip 'hooks' when generating the image. Several hooks should be comma-separated. + This option can be specified multiple times. *-s*:: Saves the build directory for the initial ramdisk. Default: no; This means -- cgit v1.2.3-24-g4f1b