diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-16 13:41:09 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-16 14:16:00 +0200 |
commit | c0bcc845e351dcd020fdc41f574476992e84e4dc (patch) | |
tree | bae62ec7c3131be83675ebbd32922daa25123139 | |
parent | gen_initramfs.sh: Use find with -print0 parameter to support files with white... (diff) | |
download | genkernel-c0bcc845e351dcd020fdc41f574476992e84e4dc.tar.gz genkernel-c0bcc845e351dcd020fdc41f574476992e84e4dc.tar.bz2 genkernel-c0bcc845e351dcd020fdc41f574476992e84e4dc.zip |
gen_initramfs.sh: create_initramfs(): Make MCU CPIO creation silent but log content
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-x | gen_initramfs.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh index f3b0ba08..6085ee8c 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1727,9 +1727,10 @@ create_initramfs() { if [ -f "${UCODEDIR}/AuthenticAMD.bin" -o -f "${UCODEDIR}/GenuineIntel.bin" ] then print_info 1 "$(get_indent 2)early-microcode: Creating cpio ..." - pushd "${TEMP}/ucode_tmp" > /dev/null - find . -print0 | cpio --null -o -H newc > ../ucode.cpio || gen_die "Failed to create cpu microcode cpio" - popd > /dev/null + pushd "${TEMP}/ucode_tmp" &>/dev/null || gen_die "Failed to chdir to '${TEMP}/ucode_tmp'!" + log_future_cpio_content + find . -print0 | cpio --quiet --null -o -H newc > ../ucode.cpio || gen_die "Failed to create cpu microcode cpio" + popd &>/dev/null || gen_die "Failed to chdir!" print_info 1 "$(get_indent 2)early-microcode: Prepending early-microcode to initramfs ..." cat "${TEMP}/ucode.cpio" "${CPIO}" > "${CPIO}.early-microcode" || gen_die "Failed to prepend early-microcode to initramfs" mv -f "${CPIO}.early-microcode" "${CPIO}" || gen_die "Rename failed" |