summaryrefslogtreecommitdiffstats
path: root/debian/patches/progress-linux/0002-firmware-quiet-container.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/progress-linux/0002-firmware-quiet-container.patch')
-rw-r--r--debian/patches/progress-linux/0002-firmware-quiet-container.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0002-firmware-quiet-container.patch b/debian/patches/progress-linux/0002-firmware-quiet-container.patch
new file mode 100644
index 0000000..9ab9809
--- /dev/null
+++ b/debian/patches/progress-linux/0002-firmware-quiet-container.patch
@@ -0,0 +1,19 @@
+Author: Baumann <daniel.baumann@progress-linux.org>
+Description: Only warn about missing firmware if not in a container.
+
+diff -Naurp initramfs-tools.orig/hook-functions initramfs-tools/hook-functions
+--- initramfs-tools.orig/hook-functions
++++ initramfs-tools/hook-functions
+@@ -97,6 +97,12 @@ manual_add_modules()
+ continue
+ fi
+
++ # Only warn about missing firmware if
++ # not in a container
++ if ! grep -qs ':cpuset:/$' /proc/1/cgroup; then
++ continue
++ fi
++
+ kmod_modname="${kmod##*/}"
+ kmod_modname="${kmod_modname%%.*}"
+ if grep -q "^$kmod_modname\\>" /proc/modules "${CONFDIR}/modules"; then