WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] RE: [RFC][PATCH] create an initrd for dom0 in install.shscript
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20060330212052.GC2080@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <EF8D308BE33AF54D8934DF26520252D3042CEF19@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1143749384.7816.1.camel@xxxxxxxxxxxxxxxxxxxxx> <20060330212052.GC2080@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11+cvs20060126
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