[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
address@hidden: Bug#199470: grub: add support for '--no-floppy' to grub-
From: |
Jason Thomas |
Subject: |
address@hidden: Bug#199470: grub: add support for '--no-floppy' to grub-install] |
Date: |
Wed, 2 Jul 2003 09:28:07 +1000 |
User-agent: |
Mutt/1.5.4i |
Okuji, Does below look correct, can I upload this. Thanks.
----- Forwarded message from address@hidden -----
> Date: Tue, 01 Jul 2003 10:56:39 +0300
> From: address@hidden
> To: address@hidden
> Subject: Bug#199470: grub: add support for '--no-floppy' to grub-install
>
> Package: grub
> Version: N/A
> Severity: wishlist
>
> Please add support for '--no-floppy' command line parameter to grub-install,
> which would be passed to grub - there is a certain need for such parameter
> on flopyless stations.
> thanks. the patch is provided below (sorry, no reportbug utility on this
> machine)
>
> --- grub-install.orig 2003-07-01 10:19:57.000000000 +0300
> +++ grub-install 2003-07-01 10:45:36.000000000 +0300
> @@ -36,6 +36,7 @@
> grub_prefix=/boot/grub
>
> install_device=
> +no_floppy=
> force_lba=
> recheck=no
> debug=no
> @@ -64,6 +65,7 @@
> --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
> @@ -225,6 +227,8 @@
> 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)
> @@ -316,7 +320,7 @@
> # 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
> @@ -399,7 +403,7 @@
> 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
> @@ -424,7 +428,7 @@
> 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
>
>
> -- System Information
> Debian Release: testing/unstable
> Kernel Version: Linux diedas 2.4.20-686-ByRGBv2 #3 Wed Mar 26 13:50:28 EET
> 2003 i686 unknown unknown GNU/Linux
>
>
----- End forwarded message -----
--
Jason Thomas Phone: +61 2 6257 7111
Unix System Administrator Fax: +61 2 6257 7311
Intology Services Pty. Ltd. Mobile: 0418 29 66 81
1 Hall Street Lyneham ACT 2602 http://www.intology.com.au/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- address@hidden: Bug#199470: grub: add support for '--no-floppy' to grub-install],
Jason Thomas <=