From bcd40f477ff67ed7328663739e410d3bd3070143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Tue, 1 Feb 2022 13:31:17 +0100 Subject: [PATCH] Ignore cpio errors because LXC hosts produce warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit eg. cpio: dev/console: Cannot mknod: Operation not permitted Warning because the initrd.gz content is extracted but provide an exit code different from 0… --- scripts/make_debian_initrd_with_firmware.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ## }}}