aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-02-09 14:13:01 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-02-09 14:13:01 +0100
commit98e1bc5365d8fdfed07f7589088c9895de67c256 (patch)
treec2490eac2eb1968286d6ba7d5d48ef3e2919caf7
parentgen_funcs.sh: check_disk_space_requirements(): use global LC_ALL (diff)
downloadgenkernel-98e1bc5365d8fdfed07f7589088c9895de67c256.tar.gz
genkernel-98e1bc5365d8fdfed07f7589088c9895de67c256.tar.bz2
genkernel-98e1bc5365d8fdfed07f7589088c9895de67c256.zip
gen_initramfs.sh: append_eudev(): log udevadm errors to $LOGFILE
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-xgen_initramfs.sh3
1 files changed, 2 insertions, 1 deletions
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