bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Another semi-critical one... (was Re: towards 0.91 )


From: erich
Subject: Re: [PATCH] Another semi-critical one... (was Re: towards 0.91 )
Date: Sat, 27 Oct 2001 15:10:52 -0700

OK, here's a simpler/better version of the patch I had before, putting
in a delay after the sync, and only in the place it was getting a
block-map from the disk.

This isn't a true fix, but it's something that should work for
pretty much everything as a decent work-around for now.

------------------------(start patch)-----------------------
--- grub.orig/util/grub-install.in      Mon Oct 22 16:46:07 2001
+++ grub/util/grub-install.in   Sat Oct 27 13:06:33 2001
@@ -318,6 +322,10 @@
 # Create a safe temporary file.
 test -x /bin/tempfile && log_file=`tempfile --prefix=grub`

+# Before invoking the grub shell to get a blocklist, call sync then sleep
+# to make sure metadata journaled FS's have some time to sync up.
+sync ; sleep 2
+
 # Now perform the installation.
 $grub_shell --batch --device-map=$device_map <<EOF >$log_file
 root $root_drive
------------------------(end patch)-----------------------

--
    Erich Stefan Boleyn     <address@hidden>     http://www.uruk.org/
"Reality is truly stranger than fiction; Probably why fiction is so popular"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]