From c55290be997ac9f822dbd57ec9a9721298ba8f35 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 15 Nov 2022 18:10:39 +0100 Subject: [PATCH] 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. --- etc/grml/fai/config/scripts/GRMLBASE/39-modprobe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4