4 # Provides: AddDeleteUnattendScript
5 # RunBefore: UmountImage
7 # Short-Description: Script that removes Unattend.xml after setup has finished
11 . "@commondir@/common.sh"
13 if [ ! -d "$SNF_IMAGE_TARGET" ]; then
14 log_error "Target dir: \`$SNF_IMAGE_TARGET' is missing"
17 if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = "windows" ]; then
18 # Make sure Unattend.xml is removed after setup has finished
19 mkdir -p "$SNF_IMAGE_TARGET/Windows/Setup/Scripts"
20 echo "del /Q /F C:\Unattend.xml" > "$SNF_IMAGE_TARGET/Windows/Setup/Scripts/SetupComplete.cmd"
25 # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :