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
10a5c2bf
Commit
10a5c2bf
authored
12 years ago
by
Nikos Skalkotos
Browse files
Options
Downloads
Patches
Plain Diff
In bundle_volume print msg when cloning partitions
parent
b0376b3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
image_creator/bundle_volume.py
+6
-4
6 additions, 4 deletions
image_creator/bundle_volume.py
with
6 additions
and
4 deletions
image_creator/bundle_volume.py
+
6
−
4
View file @
10a5c2bf
...
...
@@ -350,9 +350,11 @@ class BundleVolume(object):
# For partitions that are not mounted right now, we can simply dd them
# into the image.
for
p
in
unmounted
:
self
.
out
.
output
(
'
Cloning partition %d ...
'
%
p
.
num
,
False
)
dd
(
'
if=%s
'
%
self
.
disk
.
device
.
path
,
'
of=%s
'
%
image
,
'
count=%d
'
%
(
p
.
end
-
p
.
start
+
1
),
'
conv=notrunc
'
,
'
seek=%d
'
%
p
.
start
,
'
skip=%d
'
%
p
.
start
)
self
.
out
.
success
(
"
done
"
)
loop
=
str
(
losetup
(
'
-f
'
,
'
--show
'
,
image
)).
strip
()
mapped
=
{}
...
...
@@ -393,10 +395,10 @@ class BundleVolume(object):
# directory. Make them inherit those properties from their
# parent dir
for
excl
in
excluded
:
dirname
=
os
.
path
.
dirname
(
excl
)
stat
=
os
.
stat
(
dirname
)
os
.
mkdir
(
target
+
excl
,
stat
.
st_mode
)
os
.
chown
(
target
+
excl
,
stat
.
st_uid
,
stat
.
st_gid
)
dirname
=
os
.
path
.
dirname
(
excl
)
stat
=
os
.
stat
(
dirname
)
os
.
mkdir
(
target
+
excl
,
stat
.
st_mode
)
os
.
chown
(
target
+
excl
,
stat
.
st_uid
,
stat
.
st_gid
)
# We need to replace the old UUID referencies with the new
# ones in grub configuration files and /etc/fstab for file
...
...
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