Disable RDP connection during windows setup
[snf-image] / snf-image-helper / tasks / 40AddDeleteUnattendScript.in
index 57af6be..d0f425b 100644 (file)
@@ -5,7 +5,7 @@
 # RunBefore:           UmountImage
 # RunAfter:            MountImage
 # Short-Description:   Script that removes Unattend.xml after setup has finished
-### END TAST INFO
+### END TASK INFO
 
 set -e
 . "@commondir@/common.sh"
@@ -14,7 +14,7 @@ if [ ! -d "$SNF_IMAGE_TARGET" ]; then
        log_error "Target dir: \`$SNF_IMAGE_TARGET' is missing" 
 fi
 
-if [ "$SNF_IMAGE_TYPE" = "ntfsdump" ]; then
+if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = "windows" ]; then
     # Make sure Unattend.xml is removed after setup has finished
     mkdir -p "$SNF_IMAGE_TARGET/Windows/Setup/Scripts"
     echo "del /Q /F C:\Unattend.xml" > "$SNF_IMAGE_TARGET/Windows/Setup/Scripts/SetupComplete.cmd"