Skip to content

Commit

Permalink
Merge pull request #54 from koenvandesande/fix_timeout_value
Browse files Browse the repository at this point in the history
Timeout seems hardcoded to 1 instead of specified value
  • Loading branch information
cloudymax authored Apr 11, 2024
2 parents 1fec337 + 2e4afac commit 65a25f7
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 1/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=1/g' "${BUILD_DIR}/boot/grub/grub.cfg"
sed -i -e 's/set timeout=30/set timeout=1/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 65a25f7

Please sign in to comment.