[Pkg-uml-commit] r94 - trunk/src/rootstrap/modules

Mattia Dongili malattia at costa.debian.org
Tue May 23 20:24:07 UTC 2006


Author: malattia
Date: 2006-05-23 20:24:07 +0000 (Tue, 23 May 2006)
New Revision: 94

Modified:
   trunk/src/rootstrap/modules/uml
Log:
create generic device nodes in the guest image (note: it take ages to run here, maybe udev is definitely a more appropriate choice)

Modified: trunk/src/rootstrap/modules/uml
===================================================================
--- trunk/src/rootstrap/modules/uml	2006-05-23 20:22:12 UTC (rev 93)
+++ trunk/src/rootstrap/modules/uml	2006-05-23 20:24:07 UTC (rev 94)
@@ -5,12 +5,11 @@
 	mknod $TARGET/dev/ubd$i b 98 $[$i * 16]; 
 done
 
-# Make bootable without DevFS on guest
-# mknod $TARGET/dev/ubd0 b 98 0 instead of /dev/ubd/0
-#for i in 0 1 2 3 4 5 6 7; do mknod $TARGET/dev/ubd$i b 98 $[$i * 16]; done
+# create generic device nodes.
+mount -t proc proc $TARGET/proc
+chroot $TARGET /bin/sh -c 'cd /dev && ./MAKEDEV generic'
 
-#chroot $TARGET /bin/sh -c 'cd /dev && ./MAKEDEV ubd'
-
+# generate a new fstab
 cat <<EOF > $TARGET/etc/fstab
 /dev/ubd0 / 	$fstype defaults 			0 1
 proc 	/proc 	proc 	defaults 			0 0




More information about the Pkg-uml-commit mailing list