@@ -29,17 +29,24 @@ echo "Linux distribution: $DISTRIBUTION"
2929
3030if [ " ${DISTRIBUTION} " = " ubuntu" ] && ([ " ${INSTALL_BLOBFUSE} " = " true" ] || [ " ${INSTALL_BLOBFUSE2} " = " true" ])
3131then
32- cp /blobfuse-proxy/packages-microsoft-prod.deb /host/etc/
32+ release=$( $HOST_CMD lsb_release -rs)
33+ echo " Ubuntu release: $release "
34+
35+ if [ " $release " = " 22.04" ]
36+ then
37+ cp /blobfuse-proxy/packages-microsoft-prod-22.04.deb /host/etc/packages-microsoft-prod.deb
38+ else
39+ cp /blobfuse-proxy/packages-microsoft-prod-18.04.deb /host/etc/packages-microsoft-prod.deb
40+ fi
41+
3342 # when running dpkg -i /etc/packages-microsoft-prod.deb, need to enter y to continue.
3443 # refer to https://stackoverflow.com/questions/45349571/how-to-install-deb-with-dpkg-non-interactively
3544 yes | $HOST_CMD dpkg -i /etc/packages-microsoft-prod.deb && $HOST_CMD apt update
3645
3746 pkg_list=" "
38- if [ " ${INSTALL_BLOBFUSE} " = " true" ]
47+ if [ " ${INSTALL_BLOBFUSE} " = " true" ] && [ " $release " = " 18.04 " ]
3948 then
40- if [ " $release " = " 18.04" ]; then
41- pkg_list=" ${pkg_list} fuse"
42- fi
49+ pkg_list=" ${pkg_list} fuse"
4350 # install blobfuse with latest version or specific version
4451 if [ -z " ${BLOBFUSE_VERSION} " ]; then
4552 echo " install blobfuse with latest version"
5158
5259 if [ " ${INSTALL_BLOBFUSE2} " = " true" ]
5360 then
54- release=$( $HOST_CMD lsb_release -rs)
5561 if [ " $release " = " 18.04" ]; then
5662 echo " install fuse for blobfuse2"
5763 pkg_list=" ${pkg_list} fuse"
0 commit comments