Generate grub.conf properly for Qubes kernel
This commit is contained in:
parent
d50bfb7501
commit
034eced7b7
10
booty/x86.py
10
booty/x86.py
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user