* Shut up warnings about QEMU_OPTS being undefined.
svn path=/nixos/trunk/; revision=27982
This commit is contained in:
parent
66ffeb3fd9
commit
2dc81fc9dd
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ sub start {
|
||||||
$ENV{QEMU_OPTS} =
|
$ENV{QEMU_OPTS} =
|
||||||
"-no-reboot -monitor unix:./monitor -chardev socket,id=shell,path=./shell " .
|
"-no-reboot -monitor unix:./monitor -chardev socket,id=shell,path=./shell " .
|
||||||
"-device virtio-serial -device virtconsole,chardev=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}";
|
$ENV{QEMU_KERNEL_PARAMS} = "hostTmpDir=$ENV{TMPDIR}";
|
||||||
chdir $self->{stateDir} or die;
|
chdir $self->{stateDir} or die;
|
||||||
exec $self->{startCommand};
|
exec $self->{startCommand};
|
||||||
|
|
Loading…
Reference in a new issue