Bug#288678: patch to fix grub-floppy
tony mancill
tony mancill <tmancill@debian.org>, 288678@bugs.debian.org
Fri, 28 Jan 2005 09:43:03 -0800
Package: grub
Version: 0.95+cvs20040624-13
Followup-For: Bug #288678
Please consider a patch like the following for grub-floppy. By
explicitly setting stage1 and stage2 and letting ls handle the
metachars, don't have to worry about any of the other references to
those two variables in the script.
FWIW, no need to rewrite this script in Perl... ;)
Cheers,
tony
--- /sbin/grub-floppy 2005-01-16 14:20:51.000000000 -0800
+++ /tmp/grub-floppy 2005-01-28 09:35:05.000000000 -0800
@@ -19,9 +19,11 @@
# Initialize some variables.
dd=`which dd`
+ls=`which ls`
+head=`which head`
pkglibdir=/lib/grub/*-*
-stage1=$pkglibdir/stage1
-stage2=$pkglibdir/stage2
+stage1=`$ls -1 $pkglibdir/stage1 | $head -1`
+stage2=`$ls -1 $pkglibdir/stage2 | $head -1`
# I like functions.
Cheers,
tony
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.28
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages grub depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libncurses5 5.4-4 Shared libraries for terminal hand
-- no debconf information