Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2016 14:36:56 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r303297 - stable/10/sys/boot/efi/boot1
Message-ID:  <201607251436.u6PEau7O046709@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Jul 25 14:36:55 2016
New Revision: 303297
URL: https://svnweb.freebsd.org/changeset/base/303297

Log:
  MFC r297871: boot1.efifat: provide a fallback startup.nsh
  
  In case the firmware falls through to executing startup.sh, populate it
  with the name of our boot loader. In normal operation this should not be
  necessary but may allow the system to boot if it would otherwise just
  remain at a shell prompt.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/sys/boot/efi/boot1/generate-fat.sh
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/boot/efi/boot1/generate-fat.sh
==============================================================================
--- stable/10/sys/boot/efi/boot1/generate-fat.sh	Mon Jul 25 14:35:48 2016	(r303296)
+++ stable/10/sys/boot/efi/boot1/generate-fat.sh	Mon Jul 25 14:36:55 2016	(r303297)
@@ -41,6 +41,8 @@ mkdir -p stub/efi/boot
 
 # Make a dummy file for boot1
 echo 'Boot1 START' | dd of=stub/efi/boot/$FILENAME cbs=$BOOT1_SIZE count=1 conv=block
+# Provide a fallback startup.nsh
+echo $FILENAME > stub/efi/boot/startup.nsh
 
 umount stub
 mdconfig -d -u $DEVICE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607251436.u6PEau7O046709>