Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

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: Aron Griffis <aron@xxxxxx>
Date: Thu, 30 Mar 2006 16:20:52 -0500
Delivery-date: Thu, 30 Mar 2006 21:23:10 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1143749384.7816.1.camel@xxxxxxxxxxxxxxxxxxxxx>
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>
Mail-followup-to: xen-devel@xxxxxxxxxxxxxxxxxxx
References: <EF8D308BE33AF54D8934DF26520252D3042CEF19@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1143749384.7816.1.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
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)"

Aron

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