Though the grub-install shell script is very nice letting the user specify things the location of the grub shell, it doesn't let the user override the location of the configuration file..which is kind of painful for users (or newbie admins) who don't know their way around the grub shell and want to do this.
This patch add this option.
I know that at least one distribution (GoboLinux) would like this option on grub-install.
Please consider applying.
Cheers,
Felipe
--- grub-install.orig 2003-07-21 15:58:07.000000000 -0300
+++ grub-install 2003-07-21 15:55:24.000000000 -0300
@@ -34,6 +34,7 @@
img_file=/tmp/grub-install.img.$$
rootdir=
grub_prefix=/boot/grub
+config_file=${grub_prefix}/menu.lst
install_device=
force_lba=
@@ -67,6 +68,7 @@
--force-lba force GRUB to use LBA mode even for a buggy
BIOS
--recheck probe a device map even if it already exists
+ --config-file=FILE use FILE as the configuration file
INSTALL_DEVICE can be a GRUB device name or a system device filename.
@@ -229,6 +231,8 @@
force_lba="--force-lba" ;;
--recheck)
recheck=yes ;;
+ --config-file=*)
+ config_file=`echo "$option" | sed 's/--config-file=//'` ;;
# This is an undocumented feature...
--debug)
debug=yes ;;
@@ -297,6 +301,13 @@
exit 1
fi
+if test -f "$config_file"; then
+ :
+else
+ echo "$config_file: Not found." 1>&2
+ exit 1
+fi
+
# Don't check for *stage1_5, because it is not fatal even if any
# Stage 1.5 does not exist.
@@ -424,7 +435,7 @@
test -n "$mklog" && log_file=`$mklog`
# Now perform the installation.
-$grub_shell --batch --device-map=$device_map <<EOF >$log_file
+$grub_shell --config-file=$config_file --batch --device-map=$device_map <<EOF
>$log_file
root $root_drive
setup $force_lba --stage2=$grubdir/stage2 --prefix=$grub_prefix $install_drive
quit
_______________________________________________ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
