SVN: geninitrd/trunk/geninitrd
glen
glen at pld-linux.org
Fri Oct 5 15:39:05 CEST 2007
Author: glen
Date: Fri Oct 5 15:39:05 2007
New Revision: 8784
Modified:
geninitrd/trunk/geninitrd
Log:
- no need to interpolate vars in gen_devices()
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Fri Oct 5 15:39:05 2007
@@ -1178,13 +1178,13 @@
# generates /dev nodes based on /proc/partitions information
# needs /proc mounted
initrd_gen_devices() {
- cat <<-EOF >> "$s"
+ cat <<-'EOF' >> "$s"
: 'Making device nodes'
# 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
- node=/dev/\$dev
- mkdir -p \${node%/*}
- mknod \$node b \$major \$minor
+ node=/dev/$dev
+ mkdir -p ${node%/*}
+ mknod $node b $major $minor
done
)
EOF
More information about the pld-cvs-commit
mailing list