|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] RE: [RFC][PATCH] create an initrd for dom0 in install.sh
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
|
|
|
|
|