commit: 98e1bc5365d8fdfed07f7589088c9895de67c256
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 9 13:13:01 2021 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Tue Feb 9 13:13:01 2021 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=98e1bc53
gen_initramfs.sh: append_eudev(): log udevadm errors to $LOGFILE
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
gen_initramfs.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gen_initramfs.sh b/gen_initramfs.sh
index f5fcd98..65a966d 100755
--- a/gen_initramfs.sh
+++ b/gen_initramfs.sh
@@ -628,7 +628,8 @@ append_eudev() {
local gen_hwdb_cmd=( "${TDIR}/usr/bin/udevadm" )
gen_hwdb_cmd+=( hwdb --update --root "${TDIR}" )
print_info 3 "COMMAND: ${gen_hwdb_cmd[*]}" 1 0 1
- eval "${gen_hwdb_cmd[@]}" || gen_die "Failed to pre-generate
initramfs' /etc/udev/hwdb.bin!"
+ eval "${gen_hwdb_cmd[@]}" 2>&1 | tee -a "${LOGFILE}" \
+ || gen_die "Failed to pre-generate initramfs'
/etc/udev/hwdb.bin!"
# Now that we have a pre-generated hwdb in initramfs
# we can delete source files