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

Mattia Dongili malattia at costa.debian.org
Sat May 27 15:24:49 UTC 2006


Author: malattia
Date: 2006-05-27 15:24:47 +0000 (Sat, 27 May 2006)
New Revision: 98

Modified:
   trunk/src/rootstrap/modules/uml
Log:
create minimal device nodes with MAKEDEV

Modified: trunk/src/rootstrap/modules/uml
===================================================================
--- trunk/src/rootstrap/modules/uml	2006-05-26 12:21:29 UTC (rev 97)
+++ trunk/src/rootstrap/modules/uml	2006-05-27 15:24:47 UTC (rev 98)
@@ -1,14 +1,12 @@
 #!/bin/sh -e
 
-# Add ubd devices in $TARGET
-for i in 0 1 2 3 4 5 6 7; do
-	mknod $TARGET/dev/ubd$i b 98 $[$i * 16]; 
+# create device nodes.
+mount -t proc proc $TARGET/proc
+for i in 1 2 3 4 5 6 7 8; do
+	NEW_TTY="$NEW_TTY tty$i"
 done
+chroot $TARGET /bin/sh -c "cd /dev && ./MAKEDEV ubd std $NEW_TTY"
 
-# create generic device nodes.
-mount -t proc proc $TARGET/proc
-chroot $TARGET /bin/sh -c 'cd /dev && ./MAKEDEV generic'
-
 # generate a new fstab
 cat <<EOF > $TARGET/etc/fstab
 /dev/ubd0 / 	$fstype defaults 			0 1
@@ -16,6 +14,7 @@
 tmpfs  	/tmp    tmpfs   defaults,size=768M 	0 0
 EOF
 
+# copy kernel modules
 if [ "$install_modules" = "yes" -a -d /usr/lib/uml/modules ]; then
 	mkdir -p $TARGET/lib/modules
 	cp -R /usr/lib/uml/modules/* $TARGET/lib/modules




More information about the Pkg-uml-commit mailing list