]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
added --no-floppy option to grub-install
authorjthomas <jthomas@localhost>
Fri, 1 Aug 2003 01:26:49 +0000 (01:26 +0000)
committerjthomas <jthomas@localhost>
Fri, 1 Aug 2003 01:26:49 +0000 (01:26 +0000)
ChangeLog
util/grub-install.in

index b59153618568e9f6e4432949b43c67c4054d6815..3f20f16bf439d7f0a2aaaa0ad9cfebdf762c4439 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-08-01  Jason Thomas  <jason@intology.com.au>
+
+       * util/grub-install.in: support --no-floppy
+       This allow users to specify the --no-floppy option which
+       is passed onto the grub shell, so it does not probe the floppy
+       drive. 
+       Patch from kesha@diedas.soften.ktu.lt
+
 2003-06-17  Jochen Hoenicke  <jochen@gnu.org>
 
        * stage2/fsys_reiserfs.c (reiserfs_mount): Clear the node cache.
index a6a9ac1b6676c5a0f203ac17cb5462ee3bb5a8e8..4cf263b096cbf970a801398e3f7813e6742a9786 100644 (file)
@@ -36,6 +36,7 @@ rootdir=
 grub_prefix=/boot/grub
 
 install_device=
+no_floppy=
 force_lba=
 recheck=no
 debug=no
@@ -64,6 +65,7 @@ Install GRUB on your drive.
   --root-directory=DIR    install GRUB images under the directory DIR
                           instead of the root directory
   --grub-shell=FILE       use FILE as the grub shell
+  --no-floppy             do not probe any floppy drive
   --force-lba             force GRUB to use LBA mode even for a buggy
                           BIOS
   --recheck               probe a device map even if it already exists
@@ -221,6 +223,8 @@ for option in "$@"; do
        rootdir=`echo "$option" | sed 's/--root-directory=//'` ;;
     --grub-shell=*)
        grub_shell=`echo "$option" | sed 's/--grub-shell=//'` ;;
+    --no-floppy)
+       no_floppy="--no-floppy" ;;
     --force-lba)
        force_lba="--force-lba" ;;
     --recheck)
@@ -312,7 +316,7 @@ else
     # Create a safe temporary file.
     test -n "$mklog" && log_file=`$mklog`
 
-    $grub_shell --batch --device-map=$device_map <<EOF >$log_file
+    $grub_shell --batch $no_floppy --device-map=$device_map <<EOF >$log_file
 quit
 EOF
     if grep "Error [0-9]*: " $log_file >/dev/null; then
@@ -395,7 +399,7 @@ for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
     count=5
     tmp=`echo $file | sed "s|^${grubdir}|${grub_prefix}|"`
     while test $count -gt 0; do
-       $grub_shell --batch --device-map=$device_map <<EOF >$log_file
+       $grub_shell --batch $no_floppy --device-map=$device_map <<EOF >$log_file
 dump ${root_drive}${tmp} ${img_file}
 quit
 EOF
@@ -420,7 +424,7 @@ rm -f $log_file
 test -n "$mklog" && log_file=`$mklog`
 
 # Now perform the installation.
-$grub_shell --batch --device-map=$device_map <<EOF >$log_file
+$grub_shell --batch $no_floppy --device-map=$device_map <<EOF >$log_file
 root $root_drive
 setup $force_lba --stage2=$grubdir/stage2 --prefix=$grub_prefix $install_drive
 quit