[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] RE: [RFC][PATCH] create an initrd for dom0 in install.shscript


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Muli Ben-Yehuda <mulix@xxxxxxxxx>
  • Date: Fri, 31 Mar 2006 23:12:47 +0300
  • Delivery-date: Fri, 31 Mar 2006 20:16:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On Thu, Mar 30, 2006 at 04:20:52PM -0500, Aron Griffis wrote:
> Harry Butterworth wrote:  [Thu Mar 30 2006, 03:09:44PM EST]
> > Does anyone have any idea what the best way of determining what distro
> > is installed is?
> 
> Test for the existence of the following files:
> 
>     /etc/redhat-release
>     /etc/SuSE-release
>     /etc/gentoo-release
>     /etc/debian_version
>         - in this case, check for ubuntu by reading /etc/lsb-release,
>           which will contain something like:
>             DISTRIB_ID=Ubuntu
>             DISTRIB_RELEASE=5.10
>             DISTRIB_CODENAME=breezy
>             DISTRIB_DESCRIPTION="Ubuntu (The Breezy Badger Release)"

Is this really the best way to go about this? it seems to me that this
problem (creating a kernel + initrd pair in a way that matches the
current distro) is inherently distro specific, and we should be using
the distro-specific tools to do it - e.g., make-kpkg on debian. Any
other approach seems too brittle.

Cheers,
Muli
-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.