diff --git a/confluent_osdeploy/suse15/profiles/hpc/initprofile.sh b/confluent_osdeploy/suse15/profiles/hpc/initprofile.sh index 5d5f4c2b..a9ae3408 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/initprofile.sh +++ b/confluent_osdeploy/suse15/profiles/hpc/initprofile.sh @@ -2,10 +2,13 @@ discnum=$(basename $1) if [ "$discnum" != 1 ]; then exit 0; fi if [ -e $2/boot/kernel ]; then exit 0; fi -if ls $1/Product-* >& /dev/null; then - ln -s $1 $2/product -else - ln -s ${1%1}2 $2/product + +if [[ $profile =~ ^sle.* ]]; then + if ls $1/Product-* >& /dev/null; then + ln -s $1 $2/product + else + ln -s ${1%1}2 $2/product + fi fi sed -i 's/sle 15/SUSE Linux Enterprise 15/; s/opensuse_leap/openSUSE Leap/' $2/profile.yaml ln -s $1/boot/x86_64/loader/linux $2/boot/kernel && \