diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-11 16:00:06 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-11 16:00:06 +0100 |
commit | d2ef9b431cbc998efb6b39686e4c98a129f098a2 (patch) | |
tree | d169f1cda9362b23bf6e1c5129580ec7398487db | |
parent | a4126424a65e07ad49a8182b754e76ee18ae29af (diff) | |
download | alpine-conf-d2ef9b431cbc998efb6b39686e4c98a129f098a2.zip |
setup-disk: ignore non-existing firmware packages
Some modules wants non-existing firmware like b43 and b43legacy
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10530
-rw-r--r-- | setup-disk.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in index ad92426..11bb5be 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -473,7 +473,9 @@ select_firmware_pkgs() { | xargs modinfo -F firmware 2>/dev/null \ | awk -F/ '{print $1 == $0 ? "linux-firmware-other" : "linux-firmware-"$1}' \ | sort -u)" - echo ${firmware_pkgs:-linux-firmware-none} + # filter out non-existing packages like linux-firmware-b43 + # https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10530 + apk search --quiet --exact ${firmware_pkgs:-linux-firmware-none} } is_nvme_dev() { |