Per prior mails and my conversation with Ian last week, the following set of patches adds a simple bootloader that can read kernel/initrds off of the domU filesystem as well as parsing of the grub config file. Right now, only ext[23] is supported (via libext2fs) but adding other filesystems should be pretty easy, I just haven''t had a chance to sit down and look at the APIs for libreiserfs or libxfs. I''ve broken the changes into two parts. The first implements the changes needed for xm and xend to kick off a bootloader process. You can specify to use this by including a line bootloader=/usr/bin/pygrub in your domain''s config file (or similar). If you auto-connect the console, you''ll get the interactive mode for your bootloader run. If you don''t auto-connect the console, then the bootloader will be run with -q, in which case it should just pick the default. The second patch adds pygrub which is the beginning of a grub look-a-like. It parses a regular grub.conf, although at present only support for the rudimentary bits is present. I want to continue fleshing out the interface as well as adding support for whole disks as opposed to just a partition. Signed-off-by: Jeremy Katz <katzj@redhat.com> Jeremy _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Thanks Jeremy. This should be backward compatible with existing config files, right? In which case, we can apply to 2.0-testing as well as unstable. Thanks, Ian> Per prior mails and my conversation with Ian last week, the > following set of patches adds a simple bootloader that can > read kernel/initrds off of the domU filesystem as well as > parsing of the grub config file. > Right now, only ext[23] is supported (via libext2fs) but > adding other filesystems should be pretty easy, I just > haven''t had a chance to sit down and look at the APIs for > libreiserfs or libxfs. > > I''ve broken the changes into two parts. The first implements > the changes needed for xm and xend to kick off a bootloader > process. You can specify to use this by including a line > bootloader=/usr/bin/pygrub > in your domain''s config file (or similar). If you > auto-connect the console, you''ll get the interactive mode for > your bootloader run. If you don''t auto-connect the console, > then the bootloader will be run with -q, in which case it > should just pick the default. > > The second patch adds pygrub which is the beginning of a grub > look-a-like. It parses a regular grub.conf, although at > present only support for the rudimentary bits is present. I > want to continue fleshing out the interface as well as adding > support for whole disks as opposed to just a partition. > > Signed-off-by: Jeremy Katz <katzj@redhat.com> > > Jeremy > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Thu, 2005-04-14 at 08:59 +0100, Ian Pratt wrote:> This should be backward compatible with existing config files, right? In > which case, we can apply to 2.0-testing as well as unstable.Yep, should be completely backward compatible. But I''d lean towards just having it only in unstable to concentrate development efforts somewhat. Jeremy _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel