Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit b10f2b3

Browse files
committed
M #-: Fallback detection in onesysprep of RHEL/CentOS 6
1 parent b87d2c8 commit b10f2b3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/usr/sbin/onesysprep

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,13 @@ syscheck()
492492
# shellcheck disable=SC1091
493493
. /etc/os-release
494494
_ONE_OS_ID=$(echo "$ID" | tr '[:upper:]' '[:lower:]')
495+
496+
# check for legacy RHEL/CentOS 6
497+
elif [ -f /etc/centos-release ]; then
498+
echo 'centos'
499+
elif [ -f /etc/redhat-release ]; then
500+
echo 'rhel'
501+
495502
else
496503
_ONE_OS_ID=$(uname | tr '[:upper:]' '[:lower:]')
497504
fi

0 commit comments

Comments
 (0)