From 286ec1c74c05ad11dd3c561b955405849d8d5619 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 28 Sep 2017 13:38:39 -0300 Subject: Set kern.cam.boot_delay=10000 on target systems installed using memstick or ISO --- tools/builder_common.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/builder_common.sh b/tools/builder_common.sh index fbdd872..1fd8d7d 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -787,6 +787,7 @@ create_iso_image() { rm -f ${LOADERCONF} ${BOOTCONF} >/dev/null 2>&1 echo 'autoboot_delay="3"' > ${LOADERCONF} + echo 'kern.cam.boot_delay=10000' >> ${LOADERCONF} cat ${LOADERCONF} > ${FINAL_CHROOT_DIR}/boot/loader.conf create_distribution_tarball @@ -831,7 +832,6 @@ create_memstick_image() { install_default_kernel ${DEFAULT_KERNEL} echo ">>> Creating memstick to ${_image_path}." 2>&1 | tee -a ${LOGFILE} - echo "kern.cam.boot_delay=10000" >> ${INSTALLER_CHROOT_DIR}/boot/loader.conf.local BOOTCONF=${INSTALLER_CHROOT_DIR}/boot.config LOADERCONF=${INSTALLER_CHROOT_DIR}/boot/loader.conf @@ -839,6 +839,7 @@ create_memstick_image() { rm -f ${LOADERCONF} ${BOOTCONF} >/dev/null 2>&1 echo 'autoboot_delay="3"' > ${LOADERCONF} + echo 'kern.cam.boot_delay=10000' >> ${LOADERCONF} cat ${LOADERCONF} > ${FINAL_CHROOT_DIR}/boot/loader.conf create_distribution_tarball @@ -871,7 +872,6 @@ create_memstick_serial_image() { install_default_kernel ${DEFAULT_KERNEL} echo ">>> Creating serial memstick to ${MEMSTICKSERIALPATH}." 2>&1 | tee -a ${LOGFILE} - echo "kern.cam.boot_delay=10000" >> ${INSTALLER_CHROOT_DIR}/boot/loader.conf.local BOOTCONF=${INSTALLER_CHROOT_DIR}/boot.config LOADERCONF=${INSTALLER_CHROOT_DIR}/boot/loader.conf @@ -881,6 +881,7 @@ create_memstick_serial_image() { # Activate serial console+video console in loader.conf echo 'autoboot_delay="3"' > ${LOADERCONF} + echo 'kern.cam.boot_delay=10000' >> ${LOADERCONF} echo 'boot_multicons="YES"' >> ${LOADERCONF} echo 'boot_serial="YES"' >> ${LOADERCONF} echo 'console="comconsole,vidconsole"' >> ${LOADERCONF} @@ -919,7 +920,6 @@ create_memstick_adi_image() { install_default_kernel ${DEFAULT_KERNEL} echo ">>> Creating serial memstick to ${MEMSTICKADIPATH}." 2>&1 | tee -a ${LOGFILE} - echo "kern.cam.boot_delay=10000" >> ${INSTALLER_CHROOT_DIR}/boot/loader.conf.local BOOTCONF=${INSTALLER_CHROOT_DIR}/boot.config LOADERCONF=${INSTALLER_CHROOT_DIR}/boot/loader.conf @@ -929,6 +929,7 @@ create_memstick_adi_image() { # Activate serial console+video console in loader.conf echo 'autoboot_delay="3"' > ${LOADERCONF} + echo 'kern.cam.boot_delay=10000' >> ${LOADERCONF} echo 'boot_serial="YES"' >> ${LOADERCONF} echo 'console="comconsole"' >> ${LOADERCONF} echo 'comconsole_speed="115200"' >> ${LOADERCONF} -- cgit v1.1