From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio M. Di Nitto Date: Wed, 10 Oct 2012 13:14:40 +0200 Subject: [Cluster-devel] [PATCH 2/2] checkquorum.wdmd: add integration script with wdmd In-Reply-To: <50755652.5080906@itechnical.de> References: <1349775365-31526-1-git-send-email-fdinitto@redhat.com> <1349775365-31526-2-git-send-email-fdinitto@redhat.com> <24E144B8C0207547AD09C467A8259F75576A7D44@lisa.maurer-it.com> <50751CEA.7050906@redhat.com> <24E144B8C0207547AD09C467A8259F75576A7EC3@lisa.maurer-it.com> <50752DB4.60502@redhat.com> <50755652.5080906@itechnical.de> Message-ID: <507558A0.6060302@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 10/10/2012 1:04 PM, Heiko Nardmann wrote: > Am 10.10.2012 10:11, schrieb Fabio M. Di Nitto: >> [snip] >> that doesn?t scale well for debian derivates that don?t ship >> debian_version :) (see ubuntu & co..) >> >> You can?t even use something like "which dpkg" since the tool is >> available on rpm based distributions... or viceversa.. there is rpm for >> Debian & derivates. >> >> hardcoding all distributions is not optimal either, as they might change >> policy by version.... >> >> Fabio >> > > What about 'lsb_release'? Is that executable available on all platforms? Not installed by default, it?s generally shipped with $distro-lsb metapackage that pulls in half gazillions dependencies. I doubt it would solve anything since you still need to parse the output. It?s really no different than hardcoding /etc/$distro_release, actually with a few GB of extra packages ;) Fabio