From 816a0d4f694bd4ab39152c2888479493162c2427 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 25 Oct 2025 14:43:14 -0700 Subject: [PATCH] Do not check the kernelfor the OS when inside of Docker containers. --- setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index e10f8c1..37a8ad0 100755 --- a/setup.sh +++ b/setup.sh @@ -55,7 +55,11 @@ fi ## Main ## os="$(cat /etc/os-release)" -os="$os $(uname -a)" +if [[ ! -f /.dockerenv ]]; then + # If we are not in a Docker container, also check what the kernel says. + os="$os $(uname -a)" + # Docker containers use the host kernel which gives an incorrect reading. +fi echo "Making sure all necessary packages are installed..." if [[ `which ansible > /dev/null; echo $?` != 0 ]]; then