Generate grub.conf properly for Qubes kernel

This commit is contained in:
Tomasz Sterna 2011-01-20 21:23:11 -05:00
parent d50bfb7501
commit 034eced7b7

View File

@ -347,6 +347,16 @@ class x86BootloaderInfo(efiBootloaderInfo):
f.write(' %s' % self.args.get())
f.write('\n')
if initrd:
f.write('\tmodule %s%s\n' % (cfPath, initrd))
elif version.find("xenlinux") >= 0:
# Qubes kernel
hvFile = "%sxen.gz" %(cfPath)
f.write('\tkernel %s\n' %(hvFile,))
f.write('\tmodule %s ro%s' %(kernelFile, realroot))
if self.args.get():
f.write(' %s' % self.args.get())
f.write('\n')
if initrd:
f.write('\tmodule %s%s\n' % (cfPath, initrd))
else: # normal kernel