Skip to content

Commit

Permalink
Update image-create.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvandesande committed Apr 11, 2024
1 parent 58d500e commit 2e4afac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions image-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,13 +348,13 @@ set_kernel_autoinstall(){
log "🧩 Adding autoinstall parameter to isolinux..."
export LEGACY_IMAGE=1
sed -i -e 's/---/ autoinstall ---/g' "${BUILD_DIR}/isolinux/txt.cfg"
sed -i -r 's/timeout\s+[0-9]+/timeout ${TIMEOUT}/g' "${BUILD_DIR}/isolinux/isolinux.cfg"
sed -i -r "s/timeout\s+[0-9]+/timeout ${TIMEOUT}/g" "${BUILD_DIR}/isolinux/isolinux.cfg"
fi

if [[ "${TIMEOUT}" != "${DEFAULT_TIMEOUT}" ]]; then
log "🧩 Setting grub timeout to ${TIMEOUT} sec ..."
sed -i -e 's/set timeout=30/set timeout=${TIMEOUT}/g' "${BUILD_DIR}/boot/grub/grub.cfg"
sed -i -e 's/set timeout=30/set timeout=${TIMEOUT}/g' "${BUILD_DIR}/boot/grub/loopback.cfg"
sed -i -e "s/set timeout=30/set timeout=${TIMEOUT}/g" "${BUILD_DIR}/boot/grub/grub.cfg"
sed -i -e "s/set timeout=30/set timeout=${TIMEOUT}/g" "${BUILD_DIR}/boot/grub/loopback.cfg"
log "👍 Set grub timeout to ${TIMEOUT} sec."
fi

Expand Down

0 comments on commit 2e4afac

Please sign in to comment.