[Thincrust-devel] GRUB2 support

Marek Goldmann mgoldman at redhat.com
Sat Oct 15 11:03:33 UTC 2011


Hi all,

This is my first attempt to add support for GRUB2 (and Fedora 16+ ultimately) to appliance-creator. It wasn't trivial unfortunately :( This is still WIP.

Keep in mind that the patch requires also patching grub2, more info here:

	https://bugzilla.redhat.com/show_bug.cgi?id=746394

Known issues:

1. GRUB2 config file *IS NOT* generated at this time. The issue behind is that grub2-mkconfig creates grub.cfg for *host* and uses specifies loopback devices as partition roots in the grub.cfg. If you have idea how it could be done - please share with me.

2. I'm determining what version of grub is packaged only looking at the package list - I do not resolve packages from package groups specified in kickstart file. This means that if you don't have explicitly added a grub/2 package to package list - it'll be not installed. This needs to be fixed.

Other questions:

1. We cannot anymore assume that any of grub executable files are installed on the host. What would be the preferred way to execute grub/2 commands? I choose following:

a) try to find the executable on the host and try to use it,
b) if there is no executable on the host - try to use the one from image

If both of above fails - fail the build. Is that ok?

2. If we want to install grub2 on a disk - we need to have a BIOS boot partition, this means that we need to add something like this to our kickstart file:

	part biosboot --fstype=biosboot --size=1 --ondisk sda

Question: should we generate it somehow if not provided or expect it in kickstart file? I'm currently expecting this.

OK, that's all for now, please take a look at the patch and let me know what you think.

TTYL

--Marek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Initial-support-for-GRUB2.patch
Type: application/octet-stream
Size: 9239 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/thincrust-devel/attachments/20111015/dae6048a/attachment.obj>


More information about the Thincrust-devel mailing list