diff --git a/confluent_osdeploy/suse15/profiles/hpc/initprofile.sh b/confluent_osdeploy/suse15/profiles/hpc/initprofile.sh index 2ac6c8b7..8f338896 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/initprofile.sh +++ b/confluent_osdeploy/suse15/profiles/hpc/initprofile.sh @@ -2,6 +2,7 @@ discnum=$(basename $1) if [ "$discnum" != 1 ]; then exit 0; fi if [ -e $2/boot/kernel ]; then exit 0; fi +profile=$(basename $2) if [[ $profile =~ ^sle.* ]]; then if ls $1/Product-* >& /dev/null; then @@ -15,7 +16,6 @@ ln -s $1/boot/x86_64/loader/linux $2/boot/kernel && \ ln -s $1/boot/x86_64/loader/initrd $2/boot/initramfs/distribution && \ mkdir -p $2/boot/efi/boot && \ ln -s $1/EFI/BOOT/bootx64.efi $1/EFI/BOOT/grub.efi $2/boot/efi/boot/ -profile=$(basename $2) if [[ $profile =~ ^sle.* ]]; then sed -i 's/%%IFSLE%%//;s/%%ENDIFSLE%%//' $2/autoyast else