* Shut up warnings about QEMU_OPTS being undefined.

svn path=/nixos/trunk/; revision=27982
This commit is contained in:
Eelco Dolstra 2011-07-28 09:41:07 +00:00
parent 66ffeb3fd9
commit 2dc81fc9dd

View File

@ -126,7 +126,7 @@ sub start {
$ENV{QEMU_OPTS} =
"-no-reboot -monitor unix:./monitor -chardev socket,id=shell,path=./shell " .
"-device virtio-serial -device virtconsole,chardev=shell " .
($showGraphics ? "-serial stdio" : "-nographic");
($showGraphics ? "-serial stdio" : "-nographic") . " " . ($ENV{QEMU_OPTS} || "");
$ENV{QEMU_KERNEL_PARAMS} = "hostTmpDir=$ENV{TMPDIR}";
chdir $self->{stateDir} or die;
exec $self->{startCommand};