Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image-creator
Commits
dd22ce7b
Commit
dd22ce7b
authored
Mar 21, 2013
by
Nikos Skalkotos
Browse files
Fix a bug in the way rsync copies files
The exclude patterns were wrong and they excluded more files than they should.
parent
c2cf27e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
image_creator/bundle_volume.py
View file @
dd22ce7b
...
...
@@ -387,8 +387,7 @@ class BundleVolume(object):
rsync
=
Rsync
(
self
.
out
)
# Excluded paths need to be relative to the source
for
excl
in
map
(
lambda
p
:
p
[
1
:],
excluded
+
[
image
]):
for
excl
in
excluded
+
[
image
]:
rsync
.
exclude
(
excl
)
rsync
.
archive
().
hard_links
().
xattrs
().
sparse
().
acls
()
...
...
@@ -467,8 +466,8 @@ class BundleVolume(object):
dirname
=
os
.
path
.
dirname
(
image
)
self
.
out
.
output
(
"Examining available space ..."
,
False
)
if
free_space
(
dirname
)
<=
size
:
raise
FatalError
(
'
Not enough space under %s to host the
image'
%
dirname
)
raise
FatalError
(
"
Not enough space under %s to host the
temporary "
"image"
%
dirname
)
self
.
out
.
success
(
"sufficient"
)
self
.
_create_filesystems
(
image
,
partitions
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment