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

Mattia Dongili malattia at costa.debian.org
Mon May 22 23:15:00 UTC 2006


Author: malattia
Date: 2006-05-22 23:14:59 +0000 (Mon, 22 May 2006)
New Revision: 84

Modified:
   trunk/src/rootstrap/modules/uml
Log:
no need to double check device node creation, create them all, they may be useful anyway (what about udev?)

Modified: trunk/src/rootstrap/modules/uml
===================================================================
--- trunk/src/rootstrap/modules/uml	2006-05-22 23:06:41 UTC (rev 83)
+++ trunk/src/rootstrap/modules/uml	2006-05-22 23:14:59 UTC (rev 84)
@@ -1,20 +1,15 @@
 #!/bin/sh -e
 
-# Add ubd devices on host (if not present)
+# 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]; 
+done
 
-if [ ! -d /dev/ubd ]; then
-	for i in 0 1 2 3 4 5 6 7; do
-		if [ -e /dev/ubd$i ]; then
-			mknod $TARGET/dev/ubd$i b 98 $[$i * 16]; 
-		fi
-	done
-fi
-
 # 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
+#for i in 0 1 2 3 4 5 6 7; do mknod $TARGET/dev/ubd$i b 98 $[$i * 16]; done
 
-chroot $TARGET /bin/sh -c 'cd /dev && ./MAKEDEV ubd'
+#chroot $TARGET /bin/sh -c 'cd /dev && ./MAKEDEV ubd'
 
 cat <<EOF > $TARGET/etc/fstab
 /dev/ubd0 / 	$fstype defaults 			0 1
@@ -23,5 +18,6 @@
 EOF
 
 if [ "$install_modules" = "yes" -a -d /usr/lib/uml/modules ]; then
-    cp -R /usr/lib/uml/modules/* $TARGET/lib/modules
+	mkdir -p $TARGET/lib/modules
+	cp -R /usr/lib/uml/modules/* $TARGET/lib/modules
 fi




More information about the Pkg-uml-commit mailing list