From: Michael Prokop Date: Tue, 15 Nov 2022 17:10:39 +0000 (+0100) Subject: GRMLBASE/39-modprobe: do not expect all files in /etc/modprobe.d to be used X-Git-Tag: v0.42.2~4 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=c55290be997ac9f822dbd57ec9a9721298ba8f35 GRMLBASE/39-modprobe: do not expect all files in /etc/modprobe.d to be used Quotin from fcopy(8) about its -i option: | Ignore warnings about no matching class and non-existing source directories. These warnings will not set the exit code to 1. By adding this, we can support configurations of users who have additional files in their /etc/modprobe.d setup, though don't want to necessarily always install them. --- diff --git a/etc/grml/fai/config/scripts/GRMLBASE/39-modprobe b/etc/grml/fai/config/scripts/GRMLBASE/39-modprobe index fae8d06..e2fc70a 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/39-modprobe +++ b/etc/grml/fai/config/scripts/GRMLBASE/39-modprobe @@ -15,7 +15,7 @@ set -e find $target/etc/modprobe.d -maxdepth 1 -type f ! -name \*\.conf -exec mv {} {}.conf \; # Install all present modprobe.d configuration files -fcopy -v -r /etc/modprobe.d +fcopy -v -i -r /etc/modprobe.d ## END OF FILE ################################################################# # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2