Verified on spacewalk-backend-2.5.3-121 Reproduce: 1. Via comment 0, we can try to upload ks file (there are problems with uncomment variables) We get "There are errors in your kickstart template. Please check the 'Kickstart File' tab to determine the problem with the template." "The kickstart template has syntax rules, using punctuation symbols. To avoid clashes, they need to be properly treated. Details" 2. We edit ks file and comment variables: ... drives=\$(list-harddrives | awk '{print $1}') for disk in \$drives; do DISKS="\$DISKS \$(fdisk -l /dev/$disk | grep -v "swap\|LVM\|Extended" | awk '/^\/dev/{print $1}')" done The kickstart file is successfully uploaded without any errors.