Change KVM's delimiter from "," to "%"

In order not to confuse with commandline parameters
This commit is contained in:
Sheng Yang 2012-03-13 12:00:14 -07:00
parent 1c4f580a85
commit edcf95a6f0
2 changed files with 2 additions and 2 deletions

View File

@ -801,7 +801,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements
command.add("-l", vmName);
command.add("-t", "all");
command.add("-d", dataDiskPath);
command.add("-p", cmdLine.replaceAll(" ", ","));
command.add("-p", cmdLine.replaceAll(" ", "%"));
result = command.execute();
if (result != null) {
throw new InternalErrorException(result);

View File

@ -98,7 +98,7 @@ patch_all() {
cp $pubKey $path/authorized_keys
fi
echo $cmdline > $path/cmdline
sed -i "s/,/\ /g" $path/cmdline
sed -i "s/%/\ /g" $path/cmdline
return 0
}