summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-03-07 07:13:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-15 07:58:29 +0000
commit1249862744eefe060a1e453ba0c507cf8662d025 (patch)
tree2c4060b0e4c3aac86ab2e922d1e06a966a6b5b3e
parentUpdating source format. (diff)
downloadinitramfs-tools-1249862744eefe060a1e453ba0c507cf8662d025.tar.xz
initramfs-tools-1249862744eefe060a1e453ba0c507cf8662d025.zip
Only warn about missing firmware if not in a chroot.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/patches/progress-linux/0001-firmware-quiet-chroot.patch19
-rw-r--r--debian/patches/series1
2 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0001-firmware-quiet-chroot.patch b/debian/patches/progress-linux/0001-firmware-quiet-chroot.patch
new file mode 100644
index 0000000..c5f274a
--- /dev/null
+++ b/debian/patches/progress-linux/0001-firmware-quiet-chroot.patch
@@ -0,0 +1,19 @@
+Author: Baumann <daniel.baumann@progress-linux.org>
+Description: Only warn about missing firmware if not in a chroot.
+
+diff -Naurp initramfs-tools.orig/hook-functions initramfs-tools/hook-functions
+--- initramfs-tools.orig/hook-functions
++++ initramfs-tools/hook-functions
+@@ -91,6 +91,12 @@ manual_add_modules()
+ continue
+ fi
+
++ # Only warn about missing firmware if
++ # not in a chroot
++ if [ "$(stat -c %d/%i /)" != "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ]; then
++ continue
++ fi
++
+ kmod_modname="${kmod##*/}"
+ kmod_modname="${kmod_modname%%.*}"
+ if grep -q "^$kmod_modname\\>" /proc/modules "${CONFDIR}/modules"; then
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..38f96bc
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+progress-linux/0001-firmware-quiet-chroot.patch