Skip to contentSkip to conversation

skip removal of menu.lst in grub-install

PATCH Robert Millan 2 participants 3 messages Sep 14, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Any comments on this? (resending to grub-devel, previously missed it).

Quoted 47 lines · Robert Millan

Hi!

grub-install removing menu.lst makes it hard to coexist with grub legacy in the same system. Please consider the attached patch.

2006-08-19 Robert Millan <[email protected]>

	* util/i386/pc/grub-install.in: Skip menu.lst when removing
	/boot/grub/*.lst.
Signature · 15 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended for
spam harvesters.  Writing to it will get you added to my black list.

2006-08-19  Robert Millan  <[email protected]>

        * util/i386/pc/grub-install.in: Skip menu.lst when removing
        /boot/grub/*.lst.

Index: util/i386/pc/grub-install.in
===================================================================
RCS file: /sources/grub/grub2/util/i386/pc/grub-install.in,v
retrieving revision 1.8
diff -u -r1.8 grub-install.in
i386/pc/grub-install.in +2 -2
@@ -198,7 +198,7 @@
 
 # Copy the GRUB images to the GRUB directory.
 for file in ${grubdir}/*.mod ${grubdir}/*.lst ${grubdir}/*.img; do
-    if test -f $file; then
+    if test -f $file && [ "`basename $file`" != menu.lst ]; then
 	rm -f $file || exit 1
     fi
 done
@@ -206,7 +206,7 @@
     cp -f $file ${grubdir} || exit 1
 done
 
-# Create the core image. First, auto-detect the filesystme module.
+# Create the core image. First, auto-detect the filesystem module.
 fs_module=`$grub_probefs --device-map=${device_map} ${grubdir}`
 if test "x$fs_module" = x -a "x$modules" = x; then
     echo "Auto-detection of a filesystem module failed." 1>&2
Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended for
spam harvesters.  Writing to it will get you added to my black list.
#2 lore raw
Quoted 1 line · Robert Millan

Any comments on this? (resending to grub-devel, previously missed it).

This looks fine to me. Can you please apply it?

--
Marco

#3 lore raw
Quoted 5 lines · Marco Gerards
Quoted 1 line · Robert Millan

Any comments on this? (resending to grub-devel, previously missed it).

This looks fine to me. Can you please apply it?

Done.

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended for
spam harvesters.  Writing to it will get you added to my black list.