If there is a driver floppy for this arch, then add a line to the loader.rc

on the boot floppies to set the 'driver_floppy' variable in the loader so
that it ends up in the kernel environment and sysinstall will prompt for the
diskette.  Booting from CD-ROM does not use this loader.rc file, so folks
booting from CD to do an install will not be prompted.

X-MFC after:	as soon as I finish committing to current
Approved by:	re (blanket)
This commit is contained in:
John Baldwin 2003-01-15 21:49:50 +00:00
parent 0a10e2868e
commit 5613943cd8

View File

@ -1095,6 +1095,8 @@ doMFSKERN:
.if ${TARGET_ARCH} != "ia64"
@echo "set hint.acpi.0.disabled=1" >> ${RD}/image.${FSIMAGE}/boot/loader.rc
.endif
@[ -r ${RD}/floppies/drivers.flp ] && \
echo "set driver_floppy=YES" >> ${RD}/image.${FSIMAGE}/boot/loader.rc
@echo "set module_path=\"/modules;/dist\"" >> ${RD}/image.${FSIMAGE}/boot/loader.rc
@echo "echo \\007\\007" >> ${RD}/image.${FSIMAGE}/boot/loader.rc
@echo "autoboot 10" >> ${RD}/image.${FSIMAGE}/boot/loader.rc