geninitrd/trunk/geninitrd
arekm
cvs at pld-linux.org
Tue Jan 17 22:14:19 CET 2006
Author: arekm
Date: Tue Jan 17 22:14:14 2006
New Revision: 6831
Modified:
geninitrd/trunk/geninitrd
Log:
Add missing parenthesis. (Robert Jaros)
Properly copy /dev files when using lvm. (Robert Jaros)
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Tue Jan 17 22:14:14 2006
@@ -669,7 +669,7 @@
module="`echo $mod | awk -F/ '{ $0=$NF } /'$modext'.*$/ { gsub(/'$modext'.*/, NIL, $0); } { print $0; }'`"
options="`awk '{ if($1 == "options" && $2 == "'${module}'") { for(i=3;i<=NF;i++) printf("%s ",$i); }}' "$modulefile"`"
- sleep_module=$(echo "${module}" | awk ' { gsub("-", "_", $0 } { print $0; } ')
+ sleep_module=$(echo "${module}" | awk ' { gsub("-", "_", $0) } { print $0; } ')
sleep_var="$(eval echo \$MODULE_${sleep_module}_USLEEP)"
if [ -n "$verbose" ]; then
@@ -1209,7 +1209,7 @@
mkdir -p $MNTIMAGE/dev/mapper
mknod $MNTIMAGE/dev/mapper/control c 10 63
for device in $PVDEVICES; do
- cp -HR $device $MNTIMAGE
+ cp -HR $device $MNTIMAGE/dev/
done
fi
echo "mount -t proc none /proc" >> "$s"
More information about the pld-cvs-commit
mailing list