Skip to content

Commit 2828127

Browse files
committed
Exclude uncomp from layer check
1 parent aa91ebe commit 2828127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

root/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ if [[ "${EXTRACT_INITRD}" == "true" ]] && [[ "${INITRD_TYPE}" != "lz4" ]];then
9191
do
9292
# strip microcode from initrd if it has it
9393
LAYERCOUNT=$(cat ${INITRD_NAME} | cpio -tdmv 2>&1 >/dev/null | wc -c)
94-
if [[ ${LAYERCOUNT} -lt 5000 ]];then
94+
if [[ ${LAYERCOUNT} -lt 5000 ]] && [[ "${INITRD_TYPE}" != "uncomp" ]];then
9595
# This is a microcode cpio wrapper
9696
BLOCKCOUNT=$(cat ${INITRD_NAME} | cpio -tdmv 2>&1 >/dev/null | awk 'END{print $1}')
9797
dd if=${INITRD_NAME} of=${INITRD_NAME}${COUNTER} bs=512 skip=${BLOCKCOUNT}
@@ -109,7 +109,7 @@ if [[ "${EXTRACT_INITRD}" == "true" ]] && [[ "${INITRD_TYPE}" != "lz4" ]];then
109109
elif [[ "${INITRD_TYPE}" == "gz" ]];then
110110
zcat ../${INITRD_NAME} | cpio -i -d
111111
elif [[ "${INITRD_TYPE}" == "uncomp" ]];then
112-
cat ../${INITRD_NAME} | cpio -idmv --quiet
112+
cat ../${INITRD_NAME} | cpio -i -d
113113
fi
114114
break
115115
fi

0 commit comments

Comments
 (0)