diff --git a/functions-rpm.sh b/functions-rpm.sh
index affa55ce8d7bd267c98c67e3cad3fffeffc6d35a..7ba81010ea992e4aa835e4d5188fc92e29497929 100644
--- a/functions-rpm.sh
+++ b/functions-rpm.sh
@@ -119,7 +119,9 @@ get_rpmbuild() {
         "$@"
     )
 
-    source /etc/os-release
+    if [ -f /etc/os-release ]; then
+      source /etc/os-release
+    fi
     if [ "$ID" != sles ] && [[ "$VERSION" != 11.* ]]; then
       RPMBUILD+=(
         --define "_buildrootdir %{_topdir}/BUILDROOT" \
@@ -212,7 +214,9 @@ setup_extra_repository() {
         ) | sudo bash -c "cat >'/etc/zypp/credentials.d/${extra_name}'"
       fi
       (
-        source /etc/os-release
+        if [ -f /etc/os-release ]; then
+          source /etc/os-release
+        fi
         opt=()
         if [ "$ID" != sles ] && [[ "$VERSION" != 11.* ]]; then
           opt+=(--priority 50)
diff --git a/icinga-build-rpm-binary b/icinga-build-rpm-binary
index edff8f237fdc4f967a26347eb87ee80179b5ee33..bc343aabbc2ce3286b3272f8be881602a082363f 100755
--- a/icinga-build-rpm-binary
+++ b/icinga-build-rpm-binary
@@ -103,7 +103,9 @@ fi
 
 echo "[ Running rpmlint ]"
 (
-  source /etc/os-release
+  if [ -f /etc/os-release ]; then
+    source /etc/os-release
+  fi
   if [ "$ID" = sles ] && [[ "$VERSION" = 11.* ]]; then
     echo "Skip rpmlint..."
     exit 0
diff --git a/icinga-build-rpm-source b/icinga-build-rpm-source
index e9aae4f2fc74522bcf2907504e30466e142cfb64..19beae9c6269a2ff19861025e816a2bf177cf0c1 100755
--- a/icinga-build-rpm-source
+++ b/icinga-build-rpm-source
@@ -92,7 +92,9 @@ if [ -e "rpmlint/${ICINGA_BUILD_PROJECT}.conf" ]; then
   lintconf+=("-f" "rpmlint/${ICINGA_BUILD_PROJECT}.conf")
 fi
 (
-  source /etc/os-release
+  if [ -f /etc/os-release ]; then
+    source /etc/os-release
+  fi
   if [ "$ID" = sles ] && [[ "$VERSION" = 11.* ]]; then
     echo "Skip rpmlint..."
     exit 0