[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Copy stages prior to device probes in grub-install
From: |
Jeremy Katz |
Subject: |
[PATCH] Copy stages prior to device probes in grub-install |
Date: |
Wed, 8 Aug 2001 02:02:24 -0400 |
User-agent: |
Mutt/1.2.5i |
Currently, grub-install probes for devices before it copies stageX to
grubdir which causes grub-install to always fail on the first run being
unable to find any drives.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/grub/grub/ChangeLog,v
retrieving revision 1.428
diff -u -r1.428 ChangeLog
--- ChangeLog 2001/08/08 05:17:20 1.428
+++ ChangeLog 2001/08/08 05:50:31
@@ -1,3 +1,8 @@
+2001-08-08 Jeremy Katz <address@hidden>
+
+ * util/grub-install.in:
+ copy GRUB stages into the grubdir prior to probing for devices
+
2001-08-08 OKUJI Yoshinori <address@hidden>
* util/grub-md5-crypt.in: Prefix backquotes with backslashes in
Index: util/grub-install.in
===================================================================
RCS file: /cvsroot/grub/grub/util/grub-install.in,v
retrieving revision 1.28
diff -u -r1.28 grub-install.in
--- util/grub-install.in 2001/07/13 11:51:24 1.28
+++ util/grub-install.in 2001/08/08 05:50:31
@@ -225,6 +225,15 @@
test -d "$bootdir" || mkdir "$bootdir" || exit 1
test -d "$grubdir" || mkdir "$grubdir" || exit 1
+# Copy the GRUB images to the GRUB directory.
+for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
+ rm -f $file || exit 1
+done
+for file in \
+ ${pkgdatadir}/stage1 ${pkgdatadir}/stage2 ${pkgdatadir}/*stage1_5; do
+ cp -f $file ${grubdir} || exit 1
+done
+
# If --recheck is specified, remove the device map, if present.
if test $recheck = yes; then
rm -f $device_map
@@ -298,15 +307,6 @@
EOF
exit 1
fi
-
-# Copy the GRUB images to the GRUB directory.
-for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
- rm -f $file || exit 1
-done
-for file in \
- ${pkgdatadir}/stage1 ${pkgdatadir}/stage2 ${pkgdatadir}/*stage1_5; do
- cp -f $file ${grubdir} || exit 1
-done
# Create a safe temporary file.
test -x /bin/tempfile && log_file=`tempfile --prefix=grub`
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Copy stages prior to device probes in grub-install,
Jeremy Katz <=