GRMLBASE/39-modprobe: do not expect all files in /etc/modprobe.d to be used
authorMichael Prokop <mika@grml.org>
Tue, 15 Nov 2022 17:10:39 +0000 (18:10 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 16 Nov 2022 11:14:36 +0000 (12:14 +0100)
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

index fae8d06..e2fc70a 100755 (executable)
@@ -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