qvm-prefs: fix checking kernel path
This commit is contained in:
parent
c8b3009b4f
commit
42416504bb
@ -222,7 +222,7 @@ def set_kernel(vms, vm, args):
|
|||||||
kernel = None
|
kernel = None
|
||||||
vm.uses_default_kernel = False
|
vm.uses_default_kernel = False
|
||||||
else:
|
else:
|
||||||
if not os.path.join(os.path.exists(system_path["qubes_kernels_base_dir"], kernel)):
|
if not os.path.exists(os.path.join(system_path["qubes_kernels_base_dir"], kernel)):
|
||||||
print >> sys.stderr, "Kernel version {0} not installed.".format(kernel)
|
print >> sys.stderr, "Kernel version {0} not installed.".format(kernel)
|
||||||
exit(1)
|
exit(1)
|
||||||
vm.uses_default_kernel = False
|
vm.uses_default_kernel = False
|
||||||
|
Loading…
Reference in New Issue
Block a user