summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-03-17 17:45:33 +0100
committerDave Reisner <dreisner@archlinux.org>2017-03-17 17:45:33 +0100
commit91b212551a5066bda4eb76c83bdd9c0d0ac8e6cc (patch)
tree9e8828807bdd9841649c4680fe1d351b0504775c
parentc90eb88f04c6acf621e9682172636fae3d0328ad (diff)
downloadmkinitcpio-91b212551a5066bda4eb76c83bdd9c0d0ac8e6cc.tar.gz
mkinitcpio-91b212551a5066bda4eb76c83bdd9c0d0ac8e6cc.tar.xz
mkinitcpio: allow -s to be passed through to presets
ref: https://bugs.archlinux.org/task/53343
-rwxr-xr-xmkinitcpio2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkinitcpio b/mkinitcpio
index df011df..7ba2b91 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -274,6 +274,8 @@ process_preset() (
(( _optquiet )) || preset_mkopts+=(-v)
(( _optcolor )) || preset_mkopts+=(-n)
+ (( _optsavetree )) && preset_mkopts+=(-s)
+
ret=0
for p in "${PRESETS[@]}"; do
msg "Building image from preset: $preset: '$p'"