33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
commit 59fad9979cb0a07959f1eb2b5302c5c1748481c0
|
|
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
Date: Fri Sep 30 15:34:28 2022 +0200
|
|
|
|
opa-fm Fallback to custom vendor if os_vendor fails
|
|
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
|
|
diff --git MakeTools/funcs-ext.sh MakeTools/funcs-ext.sh
|
|
index 16683d80bfa9..5cdd9021bc2d 100755
|
|
--- MakeTools/funcs-ext.sh
|
|
+++ MakeTools/funcs-ext.sh
|
|
@@ -716,6 +716,9 @@ function os_vendor()
|
|
rhel)
|
|
rval=redhat
|
|
;;
|
|
+ opensuse-*)
|
|
+ rval=SuSE
|
|
+ ;;
|
|
sles)
|
|
rval=SuSE
|
|
;;
|
|
@@ -745,6 +748,9 @@ function os_vendor()
|
|
if [ ${#filelist[@]} -eq 0 ] && [ -f /etc/lsb-release ]; then
|
|
rval=$(cat /etc/lsb-release | egrep DISTRIB_ID | cut -d'=' -f2 | tr '[:upper:]' '[:lower:]')
|
|
fi
|
|
+ if [ "$rval" == "" ]; then
|
|
+ rval="custom"
|
|
+ fi
|
|
for file in $filelist
|
|
do
|
|
if [ -f $file ]
|