xenserver / xenserver-install-wizard

Post-install tools for setting up a xenserver system.
8 stars 10 forks source link

make_xen_based_on() set wrong kernel if /boot is not a device #24

Closed gthvn1 closed 11 years ago

gthvn1 commented 11 years ago

If you install all your distribution in / you need to set variable kernel="kernel /boot/xen.gz..."

Maybe add something like this to see if /boot is mounted or not.

if os.path.ismount("/boot"):
    kernel = "kernel /xen.gz blabla"
else:
    kernel = "kernel /boot/xen.gz blabla"