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
a803b449
Commit
a803b449
authored
12 years ago
by
Nikos Skalkotos
Browse files
Options
Downloads
Patches
Plain Diff
Mount the media ro if --print-sysprep is specified
parent
fa77d79a
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
image_creator/disk.py
+2
-1
2 additions, 1 deletion
image_creator/disk.py
image_creator/main.py
+2
-1
2 additions, 1 deletion
image_creator/main.py
with
4 additions
and
2 deletions
image_creator/disk.py
+
2
−
1
View file @
a803b449
...
...
@@ -242,7 +242,8 @@ class DiskDevice(object):
"""
Mount all disk partitions in a correct order.
"""
mount
=
self
.
g
.
mount_ro
if
readonly
else
self
.
g
.
mount
self
.
out
.
output
(
"
Mounting image...
"
,
False
)
msg
=
"
read-only
"
if
readonly
else
""
self
.
out
.
output
(
"
Mounting the media%s...
"
%
msg
,
False
)
mps
=
self
.
g
.
inspect_get_mountpoints
(
self
.
root
)
# Sort the keys to mount the fs in a correct order.
...
...
This diff is collapsed.
Click to expand it.
image_creator/main.py
+
2
−
1
View file @
a803b449
...
...
@@ -193,7 +193,8 @@ def image_creator():
dev
=
disk
.
get_device
(
snapshot
)
# If no customization is to be applied, the image should be mounted ro
readonly
=
not
(
options
.
sysprep
or
options
.
shrink
)
readonly
=
(
not
(
options
.
sysprep
or
options
.
shrink
)
or
options
.
print_sysprep
)
dev
.
mount
(
readonly
)
cls
=
os_cls
(
dev
.
distro
,
dev
.
ostype
)
...
...
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