Ignore cpio errors because LXC hosts produce warnings
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…
This commit is contained in:
parent
a86359dc4e
commit
bcd40f477f
|
@ -194,8 +194,7 @@ Manage initrd and firmwares for ${RED}${DISTRO}${COLOR_DEBUG} release."
|
||||||
mkdir -- "${TEMP_DIR}"/mkinitrd
|
mkdir -- "${TEMP_DIR}"/mkinitrd
|
||||||
pushd "${TEMP_DIR}"/mkinitrd/ > /dev/null \
|
pushd "${TEMP_DIR}"/mkinitrd/ > /dev/null \
|
||||||
|| error_message "Can't move to ${TEMP_DIR}/mkinitrd/ directory." 2
|
|| error_message "Can't move to ${TEMP_DIR}/mkinitrd/ directory." 2
|
||||||
zcat "${initrd_file}" | cpio --extract --quiet --preserve-modification-time 1>/dev/null \
|
zcat "${initrd_file}" | cpio --extract --quiet --preserve-modification-time 1>/dev/null 2>&1
|
||||||
|| error_message "Can't extract ${initrd_file} file for ${DISTRO}." 4
|
|
||||||
popd > /dev/null \
|
popd > /dev/null \
|
||||||
|| error_message "Can't move back from ${TEMP_DIR}/mkinitrd/ directory." 2
|
|| error_message "Can't move back from ${TEMP_DIR}/mkinitrd/ directory." 2
|
||||||
## }}}
|
## }}}
|
||||||
|
|
Loading…
Reference in New Issue