]> Zhao Yanbai Git Server - minix.git/commitdiff
newroot is gone too
authorThomas Veerman <tveerman@cs.vu.nl>
Wed, 2 May 2012 12:01:12 +0000 (14:01 +0200)
committerThomas Veerman <thomas@minix3.org>
Mon, 18 Jun 2012 10:53:31 +0000 (10:53 +0000)
drivers/ext2_ramdisk/Makefile
drivers/ext2_ramdisk/rc

index 8760d10301d9b4b41a11bc1806fef23bd1c348c4..b58f1c4ad8e673e41b569e63753263b7b98cdcde 100644 (file)
@@ -11,7 +11,7 @@ SBINFILES = ahci at_wini ext2 floppy mfs procfs \
 ETCFILES  = system.conf mtab passwd pwd.db spwd.db master.passwd \
             rs.single
 
-USRBINFILES  = newroot loadramdisk cdprobe
+USRBINFILES  = loadramdisk cdprobe
 USRSBINFILES  = acpi pci
 IMAGE_DIRS= bin sbin etc usr/bin usr/sbin
 
index 14ea74eecf08c544573a8052be2401001d55d880..81fff4bc61d69adf2cf42fb4c6b54840a2831a70 100644 (file)
@@ -67,7 +67,11 @@ echo "Root device name is $rootdevname"
 if [ -e $FSCK ]
 then   $FSCK -p $rootdevname
 fi
-/usr/bin/newroot $bin_img"$rootdevname"
+
+# Change root from temporary boot ramdisk to the configure
+# root device
+/bin/mount -n $bin_img"$rootdevname" /
+
 /bin/mount -e -n -t procfs none /proc || echo "WARNING: couldn't mount procfs"
 
 exec /bin/sh /etc/rc "$@"