[xen-tools] Re: No initrd?

Steve Kemp steve at steve.org.uk
Fri Jun 23 17:48:34 CEST 2006


On Fri, Jun 23, 2006 at 11:41:08AM -0400, Asheesh Laroia wrote:

> I've now commented out the initrd= line in /etc/xen/xen-tools.conf and set 
> --initrd= on the command line.  I'm running with --verbose, and 
> xen-create-image reports:
> 
> Kernel path    :  /boot/vmlinuz-2.6.16-1.2096_FC5xenU
> initrd path    :  /boot/initrd.img-2.6.16-1-xen-686
> 
> I think that's a default built in to the program.  That's wrong.

  Ahh, yes.  I do have a default setup.  That should be changed/removed.

  (Function 'setupDefaultOptions()' in xen-create-image.)

> I've now set "initrd=" in xen-tools.conf.  I'm also passing --initrd= on 
> the command line.  Now it reports:
> 
> Kernel path    :  /boot/vmlinuz-2.6.16-1.2096_FC5xenU
> initrd path    :
> 
> That worked just great.  It also worked without passing "--initrd=" on the 
> command line. 

  Great.

> It seems to set "ramdisk=''" in /etc/xen/whatever.cfg 
> rather than simply omitting the line, but Xen deals with that okay 
> apparently.

  Yes, the value that is specified as the initrd line is just
 interpolated into the generated file.  If you want it removed you
 must edit the template file /etc/xen-tools/xm.tmpl.

  I could change the template to read:

  { if ( $initrd )
    {
       $OUT .= "ramdisk = '$initrd'\n";
    }
  }

  That would avoid including the line if it wasn't required, but
 I think that would be confusing to read - and overkill if an
 empty value doesn't confuse xm.

Steve
-- 
# Commercial Debian GNU/Linux Support
http://www.linux-administration.org/






More information about the xen-tools-discuss mailing list