diff --git a/scripts/make_debian_initrd_with_firmware.sh b/scripts/make_debian_initrd_with_firmware.sh index 6b3e1af..4a62066 100755 --- a/scripts/make_debian_initrd_with_firmware.sh +++ b/scripts/make_debian_initrd_with_firmware.sh @@ -194,8 +194,7 @@ Manage initrd and firmwares for ${RED}${DISTRO}${COLOR_DEBUG} release." mkdir -- "${TEMP_DIR}"/mkinitrd pushd "${TEMP_DIR}"/mkinitrd/ > /dev/null \ || error_message "Can't move to ${TEMP_DIR}/mkinitrd/ directory." 2 - zcat "${initrd_file}" | cpio --extract --quiet --preserve-modification-time 1>/dev/null \ - || error_message "Can't extract ${initrd_file} file for ${DISTRO}." 4 + zcat "${initrd_file}" | cpio --extract --quiet --preserve-modification-time 1>/dev/null 2>&1 popd > /dev/null \ || error_message "Can't move back from ${TEMP_DIR}/mkinitrd/ directory." 2 ## }}}