From 796eb921f914c17ed087ed49e94fceae6c9a2997 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Wed, 1 Oct 2025 15:07:26 +0000 Subject: [PATCH] fix: blobfuse-proxy install on OpenShift 4.19 fix proxy fix --- pkg/blobfuse-proxy/init.sh | 4 ++-- pkg/blobfuse-proxy/server/server.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/blobfuse-proxy/init.sh b/pkg/blobfuse-proxy/init.sh index e41da2bdb..af4487c02 100755 --- a/pkg/blobfuse-proxy/init.sh +++ b/pkg/blobfuse-proxy/init.sh @@ -37,9 +37,9 @@ DISTRIBUTION=$($HOST_CMD cat /etc/os-release | grep ^ID= | cut -d'=' -f2 | tr -d ARCH=$($HOST_CMD uname -m) echo "Linux distribution: $DISTRIBUTION, Arch: $ARCH" -# install blobfuse-proxy and blobfuse/blofuse2 if needed +# install blobfuse-proxy and blobfuse/blobfuse2 if needed case "${DISTRIBUTION}" in - "rhcos" | "cos" | "gardenlinux") + "rhcos" | "rhel" | "cos" | "gardenlinux") . ./blobfuse-proxy/install-proxy-rhcos.sh ;; *) diff --git a/pkg/blobfuse-proxy/server/server.go b/pkg/blobfuse-proxy/server/server.go index 589a474db..9730c83dd 100644 --- a/pkg/blobfuse-proxy/server/server.go +++ b/pkg/blobfuse-proxy/server/server.go @@ -140,8 +140,8 @@ func getBlobfuseVersion() BlobfuseVersion { return BlobfuseV2 } - if strings.EqualFold(osinfo.Distro, "rhcos") { - klog.V(2).Info("proxy default using blobfuse V2 for mounting on RHCOS") + if strings.EqualFold(osinfo.Distro, "rhcos") || strings.EqualFold(osinfo.Distro, "rhel") { + klog.V(2).Info("proxy default using blobfuse V2 for mounting on RHCOS/RHEL") return BlobfuseV2 }