dom0/qvm-prefs: info when kernel setting is from template
This commit is contained in:
parent
dd7edbdfea
commit
fbce32ae1f
@ -290,6 +290,7 @@ class QubesVm(object):
|
||||
|
||||
if template_vm is not None:
|
||||
self.kernels_dir = template_vm.kernels_dir
|
||||
self.kernel = template_vm.kernel
|
||||
elif self.kernel is not None:
|
||||
self.kernels_dir = qubes_kernels_base_dir + "/" + self.kernel
|
||||
else:
|
||||
|
@ -54,7 +54,9 @@ def do_list(vm):
|
||||
print fmt.format ("private img", vm.private_img)
|
||||
print fmt.format ("memory", vm.memory)
|
||||
print fmt.format ("maxmem", vm.maxmem)
|
||||
if vm.uses_default_kernel:
|
||||
if vm.template_vm is not None:
|
||||
print fmt.format ("kernel", "%s (from template)" % vm.kernel)
|
||||
elif vm.uses_default_kernel:
|
||||
print fmt.format ("kernel", "%s (default)" % vm.kernel)
|
||||
else:
|
||||
print fmt.format ("kernel", vm.kernel)
|
||||
|
Loading…
Reference in New Issue
Block a user