summaryrefslogtreecommitdiffstats
path: root/debian/patches/progress-linux/0002-firmware-quiet-container.patch
blob: 9ab98092b86b5bc21934278b304896681730661f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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