Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Tue, 09 Feb 2021 13:18:37
Message-Id: 1612876381.98e1bc5365d8fdfed07f7589088c9895de67c256.whissi@gentoo
1 commit: 98e1bc5365d8fdfed07f7589088c9895de67c256
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 9 13:13:01 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 9 13:13:01 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=98e1bc53
7
8 gen_initramfs.sh: append_eudev(): log udevadm errors to $LOGFILE
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 gen_initramfs.sh | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15 diff --git a/gen_initramfs.sh b/gen_initramfs.sh
16 index f5fcd98..65a966d 100755
17 --- a/gen_initramfs.sh
18 +++ b/gen_initramfs.sh
19 @@ -628,7 +628,8 @@ append_eudev() {
20 local gen_hwdb_cmd=( "${TDIR}/usr/bin/udevadm" )
21 gen_hwdb_cmd+=( hwdb --update --root "${TDIR}" )
22 print_info 3 "COMMAND: ${gen_hwdb_cmd[*]}" 1 0 1
23 - eval "${gen_hwdb_cmd[@]}" || gen_die "Failed to pre-generate initramfs' /etc/udev/hwdb.bin!"
24 + eval "${gen_hwdb_cmd[@]}" 2>&1 | tee -a "${LOGFILE}" \
25 + || gen_die "Failed to pre-generate initramfs' /etc/udev/hwdb.bin!"
26
27 # Now that we have a pre-generated hwdb in initramfs
28 # we can delete source files