[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: [PATCH] add multiboot support for tboot
- From: "Wei, Gang" <gang wei intel com>
- To: Chris Lumens <clumens redhat com>
- Cc: "Cihula, Joseph" <joseph cihula intel com>, Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: RE: [PATCH] add multiboot support for tboot
- Date: Thu, 28 Jul 2011 09:17:36 +0800
> I'm sure it made sense to do it this way when we only had two
> possibilities, but now with a third, I'd much prefer that the code to
> generate a stanza be a method on an Image subclass.
Good suggestion.
> > @@ -1905,6 +1939,11 @@ def writeSysconfigKernel(anaconda,
> default_kernel):
> > f.write("DEFAULTKERNEL=%s\n" % default_kernel)
> > f.close()
> >
> > +def is_trusted_boot(anaconda):
> > + if anaconda.backend.ayum.isPackageInstalled(name="tboot"):
> > + return True
> > + else:
> > + return False
> >
> > def writeBootloader(anaconda):
> > """ Write bootloader configuration to disk.
>
> This could be simplified to just:
>
> return anaconda.backend.ayum.isPackageInstalled(name="tboot")
You are right.
Thanks a lot for the comments. BTW, I have a question regarding GRUB2. Shall we do anything else to enable multiboot for GRUB2 in anaconda?
Jimmy
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]