SVN: geninitrd/trunk/geninitrd

glen glen at pld-linux.org
Tue May 29 12:18:09 CEST 2007


Author: glen
Date: Tue May 29 12:18:09 2007
New Revision: 8628

Modified:
   geninitrd/trunk/geninitrd
Log:
- use shell construct instead of `dirname`

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd	(original)
+++ geninitrd/trunk/geninitrd	Tue May 29 12:18:09 2007
@@ -1318,14 +1318,13 @@
 		lvm dumpconfig | awk '/filter=/' >> "$MNTIMAGE/etc/lvm.conf"
 		echo "}" >> "$MNTIMAGE/etc/lvm.conf"
 
-		busybox_applet dirname
 		cat <<-EOF >> "$s"
 		: 'Making device nodes'
-		set +x
 		# ignore first two lines, header, empty line and process rest
 		cat /proc/partitions | (read b; read b; while read major minor blocks dev rest; do
-			mkdir -p /dev/\$(dirname \$dev)
-			mknod /dev/\$dev b \$major \$minor
+			node=/dev/\$dev
+			mkdir -p \${node%/*}
+			mknod \$node b \$major \$minor
 		done
 		)
 


More information about the pld-cvs-commit mailing list