aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-06-10 11:00:19 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2021-06-10 11:00:19 +0200
commit4f960a81e65c7ee1e37b5a4029e2aa47e63e654f (patch)
treeaedd38c73716d97a3059961bb25762fc52b7676a
parente2965a2d5d90297741fd37a1090fe49bc411c65b (diff)
downloadalpine-conf-4f960a81e65c7ee1e37b5a4029e2aa47e63e654f.tar.gz
alpine-conf-4f960a81e65c7ee1e37b5a4029e2aa47e63e654f.tar.bz2
alpine-conf-4f960a81e65c7ee1e37b5a4029e2aa47e63e654f.tar.xz
update-kernel: fix Warning: extra firmware "" not found!
fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/10526
-rw-r--r--update-kernel.in18
1 files changed, 10 insertions, 8 deletions
diff --git a/update-kernel.in b/update-kernel.in
index 143e8ec..b0ee125 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -293,14 +293,16 @@ find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort -
done
# install extra firmware files in modloop (i.e. not detected by modinfo)
-for _xfw in "$modloopfw"; do
- if [ -f "$ROOT/lib/firmware/$_xfw" ]; then
- install -pD "$ROOT/lib/firmware/$_xfw" \
- "$MODLOOP"/modules/firmware/"$_xfw"
- elif [ -n "$_xfw" ]; then
- echo "Warning: extra firmware \"$_xfw\" not found!"
- fi
-done
+if [ -n "$modloopfw" ]; then
+ for _xfw in "$modloopfw"; do
+ if [ -f "$ROOT/lib/firmware/$_xfw" ]; then
+ install -pD "$ROOT/lib/firmware/$_xfw" \
+ "$MODLOOP"/modules/firmware/"$_xfw"
+ elif [ -n "$_xfw" ]; then
+ echo "Warning: extra firmware \"$_xfw\" not found!"
+ fi
+ done
+fi
# wireless regulatory db
if [ -e "$ROOT"/lib/modules/*/kernel/net/wireless/cfg80211.ko ]; then