[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



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


 


Rackspace

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