Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Update GRUB generation, read in device.hints directly now, also display
Browse files Browse the repository at this point in the history
a message to hold "Left-Shift" to get into the boot-menu.
  • Loading branch information
Kris Moore committed Oct 28, 2013
1 parent 8b3a780 commit 4a9e407
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -276,6 +276,7 @@ make_timeout ()
verbose=" --verbose"
fi
cat << EOF
echo "Hold Left-Shift for menu.."
if sleep$verbose --interruptible ${1} ; then
if keystatus --shift; then
set timeout=-1
Expand Down
Expand Up @@ -52,7 +52,7 @@ display_loaderopts()
touch /tmp/.lSysCtls.$$

# Loader files, in order of which to read them
lFiles="${fMnt}/boot/device.hints ${fMnt}/boot/loader.conf.local ${fMnt}/boot/loader.conf ${fMnt}/boot/loader.conf.trueos ${fMnt}/boot/loader.conf.pcbsd"
lFiles="${fMnt}/boot/loader.conf.local ${fMnt}/boot/loader.conf ${fMnt}/boot/loader.conf.trueos ${fMnt}/boot/loader.conf.pcbsd"
for f in $lFiles
do
if [ ! -e "$f" ] ; then continue ; fi
Expand Down Expand Up @@ -202,6 +202,7 @@ EOF
# Get the dataset guts
cat /tmp/.grubdataset.$$.1
echo " kfreebsd ${shortdataset}/@/boot/kernel/kernel"
echo " kfreebsd_loadenv ${shortdataset}@/boot/device.hints"
cat /tmp/.grubdataset.$$.2

# Set any options
Expand All @@ -217,6 +218,7 @@ EOF
# Get the dataset guts
cat /tmp/.grubdataset.$$.1
echo " kfreebsd ${shortdataset}/@/boot/kernel/kernel -s"
echo " kfreebsd_loadenv ${shortdataset}@/boot/device.hints"
cat /tmp/.grubdataset.$$.2

# Set any options
Expand All @@ -232,6 +234,7 @@ EOF
# Get the dataset guts
cat /tmp/.grubdataset.$$.1
echo " kfreebsd ${shortdataset}/@/boot/kernel/kernel -v"
echo " kfreebsd_loadenv ${shortdataset}@/boot/device.hints"
cat /tmp/.grubdataset.$$.2

# Set any options
Expand All @@ -248,6 +251,7 @@ EOF
# Get the dataset guts
cat /tmp/.grubdataset.$$.1
echo " kfreebsd ${shortdataset}/@/boot/kernel/kernel"
echo " kfreebsd_loadenv ${shortdataset}@/boot/device.hints"
cat /tmp/.grubdataset.$$.2

# Set any options
Expand All @@ -263,6 +267,7 @@ EOF
# Get the dataset guts
cat /tmp/.grubdataset.$$.1
echo " kfreebsd ${shortdataset}/@/boot/kernel/kernel"
echo " kfreebsd_loadenv ${shortdataset}@/boot/device.hints"
cat /tmp/.grubdataset.$$.2

# Set any options
Expand Down

0 comments on commit 4a9e407

Please sign in to comment.