|
|
@ -348,7 +348,7 @@ else:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
kernel_name = [fname for fname in glob.glob("/boot/vmlinuz-*") if "openvz" in fname][0].split("/vmlinuz-")[-1]
|
|
|
|
kernel_name = [fname for fname in glob.glob("/boot/vmlinuz-*") if "openvz" in fname][0].split("/vmlinuz-")[-1]
|
|
|
|
except IndexError, e:
|
|
|
|
except IndexError, e:
|
|
|
|
# No suitable kernel found! TODO: Error out
|
|
|
|
# No suitable kernel found!
|
|
|
|
sys.stderr.write("ERROR: Could not find an OpenVZ kernel image to add to the GRUB\n")
|
|
|
|
sys.stderr.write("ERROR: Could not find an OpenVZ kernel image to add to the GRUB\n")
|
|
|
|
sys.stderr.write("configuration! Most likely, installation failed. Aborting...\n")
|
|
|
|
sys.stderr.write("configuration! Most likely, installation failed. Aborting...\n")
|
|
|
|
exit(1)
|
|
|
|
exit(1)
|
|
|
|