From f1d0772ce24e30d86c3cb98a8e5154dc9aa07a57 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 1 May 2013 13:17:44 -0400 Subject: mkinitcpio: ensure ERR trap propagates to install_modules Without this flag set, errors in install_modules are ignored, and mkinitcpio potentially exits without complaining about build problems when foolish people run out of disk (presumably after using /tmp as a build directory). Fixes FS#35037. Signed-off-by: Dave Reisner --- mkinitcpio | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkinitcpio b/mkinitcpio index 247fc81..0404ecc 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -517,11 +517,13 @@ parse_config "$_f_config" # switch out the error handler to catch all errors trap -- RETURN trap '(( ++_builderrors ))' ERR +set -o errtrace install_modules "${!_modpaths[@]}" # unset errtrace and trap set +o functrace +set +o errtrace trap -- ERR if [[ $_optgenimg ]]; then -- cgit v1.2.3-24-g4f1b