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

Re: init/umount problem persists



Hi.

In <[🔎] 20000201093237.B5F6A21835@cybil.onshore.com>,
 at Date: Tue, 01 Feb 2000 03:32:37 -0600,
  on Subject: init/umount problem persists,
   Adam Di Carlo <apharris@onshore.com> writes:

> I still show that the root filesystem isn't being cleanly
> unmounted on reboot.  Odd...

I will commit the following change into CVS. Try this:

--- ../../cvs/boot-floppies/utilities/busybox/init.c	Wed Feb  2 21:31:23 2000
+++ ./utilities/busybox/init.c	Fri Feb  4 17:35:06 2000
@@ -480,9 +480,9 @@
     sleep(5);
 
     message(CONSOLE, "Disabling swap.\r\n");
-    waitfor( "swapoff -a", console, FALSE);
+    system("swapoff -a");
     message(CONSOLE, "Unmounting filesystems.\r\n");
-    waitfor("umount -a -r", console, FALSE);
+    system("umount -a -r");
     sync();
     if (kernelVersion > 0 && kernelVersion <= 2 * 65536 + 2 * 256 + 11) {
 	/* bdflush, kupdate not needed for kernels >2.2.11 */
@@ -500,7 +500,7 @@
     sync();
 
     /* allow time for last message to reach serial console */
-    sleep(2);
+    sleep(5);
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,0)
     if (sig == SIGUSR2)


 (Maybe the latter is not required. Replacing "waitfor()" with "system()"
  is important, I think)

-- 
  Taketoshi Sano: <sano@debian.org>,<sano@debian.or.jp>,<kgh12351@nifty.ne.jp>


Reply to: