File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -348,13 +348,13 @@ set_kernel_autoinstall(){
348348 log " 🧩 Adding autoinstall parameter to isolinux..."
349349 export LEGACY_IMAGE=1
350350 sed -i -e ' s/---/ autoinstall ---/g' " ${BUILD_DIR} /isolinux/txt.cfg"
351- sed -i -r ' s/timeout\s+[0-9]+/timeout 1/g ' " ${BUILD_DIR} /isolinux/isolinux.cfg"
351+ sed -i -r " s/timeout\s+[0-9]+/timeout ${TIMEOUT} /g " " ${BUILD_DIR} /isolinux/isolinux.cfg"
352352 fi
353353
354354 if [[ " ${TIMEOUT} " != " ${DEFAULT_TIMEOUT} " ]]; then
355355 log " 🧩 Setting grub timeout to ${TIMEOUT} sec ..."
356- sed -i -e ' s/set timeout=30/set timeout=1/g ' " ${BUILD_DIR} /boot/grub/grub.cfg"
357- sed -i -e ' s/set timeout=30/set timeout=1/g ' " ${BUILD_DIR} /boot/grub/loopback.cfg"
356+ sed -i -e " s/set timeout=30/set timeout=${TIMEOUT} /g " " ${BUILD_DIR} /boot/grub/grub.cfg"
357+ sed -i -e " s/set timeout=30/set timeout=${TIMEOUT} /g " " ${BUILD_DIR} /boot/grub/loopback.cfg"
358358 log " 👍 Set grub timeout to ${TIMEOUT} sec."
359359 fi
360360
You can’t perform that action at this time.
0 commit comments