From d41ff2a7d82e0001c480904f74acd7832c015346 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:45:27 +0200 Subject: Only warn about missing firmware if not in a container. Signed-off-by: Daniel Baumann --- .../0002-firmware-quiet-container.patch | 19 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 20 insertions(+) create mode 100644 debian/patches/progress-linux/0002-firmware-quiet-container.patch 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 +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 diff --git a/debian/patches/series b/debian/patches/series index 38f96bc..d910616 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ progress-linux/0001-firmware-quiet-chroot.patch +progress-linux/0002-firmware-quiet-container.patch -- cgit v1.2.3