]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Add missing parenthesis. (Robert Jaros)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 17 Jan 2006 21:14:14 +0000 (21:14 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 17 Jan 2006 21:14:14 +0000 (21:14 +0000)
Properly copy /dev files when using lvm. (Robert Jaros)

svn-id: @6831

geninitrd

index c748c3cf37cd194172285d0f918424f0cedb3619..a832e203f79443dc861ed2c9eca650dc4a89d938 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -669,7 +669,7 @@ modules_add_linuxrc() {
                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 @@ initrd_gen_lvm() {
                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"
This page took 0.033396 seconds and 4 git commands to generate.