blob: c5f274a9db0058ca948bad4581be3c6a40632fd8 (
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 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
|