build_library: Run dd with status=none

Avoid dumping dd statistics to stderr.
This commit is contained in:
Benjamin Gilbert 2017-04-21 14:06:00 -07:00
parent 97b09dc943
commit 329f4bd113
3 changed files with 6 additions and 4 deletions

View File

@ -504,7 +504,7 @@ EOF
# Our modified GRUB extracts the hash and adds it to the cmdline.
printf %s "$(cat ${BUILD_DIR}/${image_name%.bin}_verity.txt)" | \
sudo dd of="${root_fs_dir}/boot/coreos/vmlinuz-a" conv=notrunc \
seek=${verity_offset} count=64 bs=1
seek=${verity_offset} count=64 bs=1 status=none
fi
# Sign the kernel after /usr is in a consistent state and verity is calculated

View File

@ -189,7 +189,7 @@ case "${FLAGS_target}" in
--directory="${ESP_DIR}/${GRUB_DIR}" "${LOOP_DEV}"
# boot.img gets manipulated by grub-bios-setup so it alone isn't
# sufficient to restore the MBR boot code if it gets corrupted.
sudo dd bs=448 count=1 if="${LOOP_DEV}" \
sudo dd bs=448 count=1 status=none if="${LOOP_DEV}" \
of="${ESP_DIR}/${GRUB_DIR}/mbr.bin"
;;
x86_64-efi)

View File

@ -722,8 +722,10 @@ _write_qemu_uefi_conf() {
emerge-${BOARD} --nodeps --select -qugKN sys-firmware/edk2-armvirt
# this bit of magic comes from http://tech.donghao.org/2014/12/18/running-fedora-21-on-qemu-system-aarch64/
cat "/build/${BOARD}/usr/share/edk2-armvirt/QEMU_EFI.fd" /dev/zero | \
dd iflag=fullblock bs=1M count=64 of="$(_dst_dir)/${flash_ro}"
dd if=/dev/zero bs=1M count=64 of="$(_dst_dir)/${flash_rw}"
dd iflag=fullblock bs=1M count=64 of="$(_dst_dir)/${flash_ro}" \
status=none
dd if=/dev/zero bs=1M count=64 of="$(_dst_dir)/${flash_rw}" \
status=none
;;
esac