[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[2096] 2009-04-13 Felix Zielcke <address@hidden>
From: |
Felix Zielcke |
Subject: |
[2096] 2009-04-13 Felix Zielcke <address@hidden> |
Date: |
Mon, 13 Apr 2009 14:14:40 +0000 |
Revision: 2096
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2096
Author: fzielcke
Date: 2009-04-13 14:14:40 +0000 (Mon, 13 Apr 2009)
Log Message:
-----------
2009-04-13 Felix Zielcke <address@hidden>
* util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
doestn't exist. Check also for /boot/kernel/kernel.gz. Print
`freebsd_loadenv' only when devices.hints exist.
Modified Paths:
--------------
trunk/grub2/ChangeLog
trunk/grub2/util/grub.d/10_freebsd.in
Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog 2009-04-13 13:00:59 UTC (rev 2095)
+++ trunk/grub2/ChangeLog 2009-04-13 14:14:40 UTC (rev 2096)
@@ -1,3 +1,9 @@
+2009-04-13 Felix Zielcke <address@hidden>
+
+ * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
+ doestn't exist. Check also for /boot/kernel/kernel.gz. Print
+ `freebsd_loadenv' only when devices.hints exist.
+
2009-04-13 Pavel Roskin <address@hidden>
* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
Modified: trunk/grub2/util/grub.d/10_freebsd.in
===================================================================
--- trunk/grub2/util/grub.d/10_freebsd.in 2009-04-13 13:00:59 UTC (rev
2095)
+++ trunk/grub2/util/grub.d/10_freebsd.in 2009-04-13 14:14:40 UTC (rev
2096)
@@ -21,15 +21,16 @@
address@hidden@
. ${libdir}/grub/grub-mkconfig_lib
-devices=/boot/devices.hints
-if ! test -e ${devices} ; then
- # not FreeBSD
- exit 0
+if test -e /boot/devices.hints ; then
+ devices=/boot/devices.hints
fi
if test -e /boot/kernel/kernel ; then
kfreebsd=/boot/kernel/kernel
fi
+if test -e /boot/kernel/kernel.gz ; then
+ kfreebsd=/boot/kernel/kernel.gz
+fi
if [ "x$kfreebsd" != "x" ] ; then
echo "Found kernel of FreeBSD: $kfreebsd" >&2
@@ -38,9 +39,11 @@
kfreebsd_dirname=`dirname $kfreebsd`
kfreebsd_rel_dirname=`make_system_path_relative_to_its_root
$kfreebsd_dirname`
- devices_basename=`basename $devices`
- devices_dirname=`dirname $devices`
- devices_rel_dirname=`make_system_path_relative_to_its_root $devices_dirname`
+ if [ x"$devices" != "x" ] ; then
+ devices_basename=`basename $devices`
+ devices_dirname=`dirname $devices`
+ devices_rel_dirname=`make_system_path_relative_to_its_root
$devices_dirname`
+ fi
root_device=`basename ${GRUB_DEVICE}`
@@ -53,7 +56,13 @@
prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
cat << EOF
freebsd ${kfreebsd_rel_dirname}/${kfreebsd_basename}
+EOF
+
+ if [ x"$devices" != "x" ] ; then
+ cat << EOF
freebsd_loadenv ${devices_rel_dirname}/${devices_basename}
+EOF
+ cat << EOF
set FreeBSD.vfs.root.mountfrom=${kfreebsd_fs}:${root_device}
}
EOF
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [2096] 2009-04-13 Felix Zielcke <address@hidden>,
Felix Zielcke <=