[Lunar-commits] r18554 - lunar-iso/trunk/initrd/template/sbin

Auke Kok sofar at lunar-linux.org
Mon Feb 6 21:16:14 UTC 2006


Author: sofar
Date: 2006-02-06 21:16:11 +0000 (Mon, 06 Feb 2006)
New Revision: 18554

Modified:
   lunar-iso/trunk/initrd/template/sbin/init
Log:
Remvoe spurious mtab warnings after the iso booted.


Modified: lunar-iso/trunk/initrd/template/sbin/init
===================================================================
--- lunar-iso/trunk/initrd/template/sbin/init	2006-02-06 19:15:49 UTC (rev 18553)
+++ lunar-iso/trunk/initrd/template/sbin/init	2006-02-06 21:16:11 UTC (rev 18554)
@@ -197,11 +197,11 @@
     if mount -n -t $VFSTYPE -o $OPTIONS $ROOT /mnt && [ -x /mnt/sbin/init ]; then
         is_26 && pkill udevd || pkill devfsd
         sleep 1
-        umount -n /proc
         umount -n /dev
 	is_26 && umount -n /sys
+	umount -n /proc
         pivot_root /mnt /mnt
-        exec /sbin/init
+        exec chroot / /sbin/init
     else
         $DIALOG --msgbox "Unable to locate /sbin/init on $ROOT." 0 0
         umount -n /mnt



More information about the Lunar-commits mailing list