firstboot: use qubes-prefs instead of qvm-set-default-netvm (#421)

This commit is contained in:
Marek Marczykowski 2012-02-07 03:11:16 +01:00
parent 5ae25a98b1
commit d5d9f287f0

View File

@ -187,10 +187,10 @@ class moduleClass(Module):
def do_set_netvm_networking(self):
self.run_command(['/usr/bin/qvm-prefs', '--set', self.fwvm_name, 'netvm', self.netvm_name])
self.run_command(['/usr/bin/qvm-set-default-netvm', self.fwvm_name])
self.run_command(['/usr/bin/qubes-prefs', '--set', 'default-netvm', self.fwvm_name])
def do_set_dom0_networking(self):
self.run_command(['/usr/bin/qvm-set-default-netvm', 'dom0'])
self.run_command(['/usr/bin/qubes-prefs', '--set', 'default-netvm', 'dom0'])
def do_start_networking(self):
subprocess.check_call(['/etc/init.d/qubes_netvm', 'start'])