Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-image-creator
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-creator
Commits
e1e7b843
Commit
e1e7b843
authored
12 years ago
by
Nikos Skalkotos
Browse files
Options
Downloads
Patches
Plain Diff
Fix cleanup_userdata sysprep
The function used to ignore directories when cleaning sensitive data
parent
12da78d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
image_creator/os_type/unix.py
+3
-3
3 additions, 3 deletions
image_creator/os_type/unix.py
with
3 additions
and
3 deletions
image_creator/os_type/unix.py
+
3
−
3
View file @
e1e7b843
...
...
@@ -42,9 +42,7 @@ class Unix(OSBase):
sensitive_userdata
=
[
'
.bash_history
'
,
'
.gnupg
'
,
'
.ssh
'
,
'
.mozilla
'
,
'
.thunderbird
'
'
.ssh
'
]
def
__init__
(
self
,
rootdev
,
ghandler
,
output
):
...
...
@@ -202,5 +200,7 @@ class Unix(OSBase):
fname
=
"
%s/%s
"
%
(
homedir
,
data
)
if
self
.
g
.
is_file
(
fname
):
self
.
g
.
scrub_file
(
fname
)
elif
self
.
g
.
is_dir
(
fname
):
self
.
foreach_file
(
fname
,
self
.
g
.
scrub_file
,
ftype
=
'
r
'
)
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
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