From 19f3a34727b328f0175f6068744b577d15cb74fd Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 25 Feb 2004 15:59:56 +0000 Subject: give us more chance to get bootloader write actually commited to disk before reboot --- mdk-stage1/rescue-gui.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mdk-stage1') diff --git a/mdk-stage1/rescue-gui.c b/mdk-stage1/rescue-gui.c index dbe12cb4a..f75ec76b2 100644 --- a/mdk-stage1/rescue-gui.c +++ b/mdk-stage1/rescue-gui.c @@ -192,7 +192,10 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) } if (ptr_begins_static_str(choice, reboot_)) { finish_frontend(); + sync(); sync(); + sleep(2); unmount_filesystems(); + sync(); sync(); printf("rebooting system\n"); sleep(2); reboot(0xfee1dead, 672274793, 0x01234567); -- cgit v1.2.1