Skip to content

Commit

Permalink
Echo file type
Browse files Browse the repository at this point in the history
  • Loading branch information
antonym committed Dec 26, 2024
1 parent dc79621 commit 6fb3721
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions root/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ chmod 777 /buildout/*
# clean up ISOs once extracted
rm *.iso

echo "Extracting initrd..."

# initrd extraction
if [[ "${EXTRACT_INITRD}" == "true" ]] && [[ "${INITRD_TYPE}" != "lz4" ]];then
INITRD_ORG=${INITRD_NAME}
Expand All @@ -98,6 +100,8 @@ if [[ "${EXTRACT_INITRD}" == "true" ]] && [[ "${INITRD_TYPE}" != "lz4" ]];then
# this is a compressed archive
mkdir initrd_files
cd initrd_files
# display file type
file ../${INITRD_NAME}
if [[ "${INITRD_TYPE}" == "xz" ]] || [[ "${INITRD_TYPE}" == "arch-xz" ]] ;then
cat ../${INITRD_NAME} | xz -d | cpio -i -d
elif [[ "${INITRD_TYPE}" == "zstd" ]];then
Expand Down

0 comments on commit 6fb3721

Please sign in to comment.