Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-image
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-image
Commits
64bca686
Commit
64bca686
authored
13 years ago
by
Nikos Skalkotos
Browse files
Options
Downloads
Patches
Plain Diff
Make sure unattend.xml is deleted after setup ends
parent
c349d1b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
helper/tasks/40AddDeleteUnattendScript.sh
+28
-0
28 additions, 0 deletions
helper/tasks/40AddDeleteUnattendScript.sh
helper/tasks/80UmountImage.sh
+0
-0
0 additions, 0 deletions
helper/tasks/80UmountImage.sh
with
28 additions
and
0 deletions
helper/tasks/40AddDeleteUnattendScript.sh
0 → 100644
+
28
−
0
View file @
64bca686
#! /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:
\U
nattend.xml"
>
"
$SNF_IMAGE_TARGET
/Windows/Setup/Scripts/SetupComplete.cmd"
exit
0
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
This diff is collapsed.
Click to expand it.
helper/tasks/
9
0UmountImage.sh
→
helper/tasks/
8
0UmountImage.sh
+
0
−
0
View file @
64bca686
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment