Displaying 3 results from an estimated 3 matches for "distro_like".
2017 Sep 01
2
[PATCH v2] appliance: use ID_LIKE as a fallback for SUSE distro detection
...SLED | SLES],[DISTRO=SUSE],
+ [OPENSUSE | SLED | SLES | SUSE],[DISTRO=SUSE],
[ARCH],[DISTRO=ARCHLINUX])
+ dnl All SUSE-based distros have ID_LIKE containing 'suse', check for it if
+ dnl ID wasn't helpful.
+ if test -z "$DISTRO"; then
+ DISTRO_LIKE="`. /etc/os-release && echo $ID_LIKE`"
+ if echo $DISTRO_LIKE | tr " " "\n" | grep -i "^SUSE$"; then
+ DISTRO=SUSE
+ fi
+ fi
elif test -f /etc/debian_version; then
DISTRO=DEBIAN
if grep -q 'DISTRIB_ID=Ubuntu&...
2017 Sep 01
1
Re: [PATCH v2] appliance: use ID_LIKE as a fallback for SUSE distro detection
...E | SLED | SLES | SUSE],[DISTRO=SUSE],
> > [ARCH],[DISTRO=ARCHLINUX])
> > + dnl All SUSE-based distros have ID_LIKE containing 'suse', check for it if
> > + dnl ID wasn't helpful.
> > + if test -z "$DISTRO"; then
> > + DISTRO_LIKE="`. /etc/os-release && echo $ID_LIKE`"
> > + if echo $DISTRO_LIKE | tr " " "\n" | grep -i "^SUSE$"; then
> > + DISTRO=SUSE
> > + fi
> > + fi
>
> If you generalized this ID_LIKE handling so tha...
2017 Sep 01
0
Re: [PATCH v2] appliance: use ID_LIKE as a fallback for SUSE distro detection
...gt; + [OPENSUSE | SLED | SLES | SUSE],[DISTRO=SUSE],
> [ARCH],[DISTRO=ARCHLINUX])
> + dnl All SUSE-based distros have ID_LIKE containing 'suse', check for it if
> + dnl ID wasn't helpful.
> + if test -z "$DISTRO"; then
> + DISTRO_LIKE="`. /etc/os-release && echo $ID_LIKE`"
> + if echo $DISTRO_LIKE | tr " " "\n" | grep -i "^SUSE$"; then
> + DISTRO=SUSE
> + fi
> + fi
If you generalized this ID_LIKE handling so that it accepted any
of the distr...