Skip to content

Commit e8094d1

Browse files
cvvzk8s-infra-cherrypick-robot
authored andcommitted
fix : init.sh
1 parent 693bff1 commit e8094d1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pkg/blobfuse-proxy/init.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ READ_AHEAD_KB=${READ_AHEAD_KB:-15380}
2424

2525
HOST_CMD="nsenter --mount=/proc/1/ns/mnt"
2626

27-
if [ "${INSTALL_BLOBFUSE}" = "true" ] || [ "${INSTALL_BLOBFUSE2}" = "true" ]
27+
DISTRIBUTION=$($HOST_CMD cat /etc/os-release | grep ^ID= | cut -d'=' -f2 | tr -d '"')
28+
echo "Linux distribution: $DISTRIBUTION"
29+
30+
if [ "${DISTRIBUTION}" = "ubuntu" ] && ([ "${INSTALL_BLOBFUSE}" = "true" ] || [ "${INSTALL_BLOBFUSE2}" = "true" ])
2831
then
2932
cp /blobfuse-proxy/packages-microsoft-prod.deb /host/etc/
3033
# when running dpkg -i /etc/packages-microsoft-prod.deb, need to enter y to continue.
@@ -34,7 +37,9 @@ then
3437
pkg_list=""
3538
if [ "${INSTALL_BLOBFUSE}" = "true" ]
3639
then
37-
pkg_list="${pkg_list} fuse"
40+
if [ "$release" = "18.04" ]; then
41+
pkg_list="${pkg_list} fuse"
42+
fi
3843
# install blobfuse with latest version or specific version
3944
if [ -z "${BLOBFUSE_VERSION}" ]; then
4045
echo "install blobfuse with latest version"

0 commit comments

Comments
 (0)