Skip to content
Snippets Groups Projects
Commit 64bca686 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Make sure unattend.xml is deleted after setup ends

parent c349d1b3
No related branches found
No related tags found
No related merge requests found
#! /bin/sh
### BEGIN TASK INFO
# Provides: AddDeleteUnattendScript
# RunBefore: UmountImage
# RunAfter: MountImage
# Short-Description: Script that removes Unattend.xml after setup has finished
### END TAST INFO
set -e
. /usr/share/snf-image/common.sh
if [ -z "$SNF_IMAGE_TARGET" ]; then
log_error "Target dir is missing"
fi
if [ "$SNF_IMAGE_TYPE" != "ntfsdump" ]; then
exit 0
fi
# 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"
exit 0
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment