Skip to content

Commit b7bb765

Browse files
committed
finetuning: use archive option for CopyFrom/ToPartition
All finetuning copy commands use -av except for the project finetuning commands. There are many situations where the -a option is necessary (permissions, directories, symlinks, device nodes). Use -av for the project finetuning partition copy commands. Signed-off-by: John Ogness <[email protected]> Reviewed-by: Bastian Germann <[email protected]>
1 parent d04b2a9 commit b7bb765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elbepack/finetuning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ def execute_img(self, _buildenv, target, builddir, loop_dev):
668668
self.node.et.text, len(fname))
669669
raise FinetuningException('Patter matches too many files')
670670

671-
cmd = 'cp "%s" "%s"' % (fname[0], os.path.join(builddir, aname))
671+
cmd = 'cp -av "%s" "%s"' % (fname[0], os.path.join(builddir, aname))
672672
do(cmd)
673673

674674
target.images.append(aname)
@@ -693,7 +693,7 @@ def execute_img(self, _buildenv, _target, builddir, loop_dev):
693693

694694
with ImgMountFilesystem(img_mnt, device) as mnt_fs:
695695
fname = mnt_fs.fname(self.node.et.text)
696-
cmd = 'cp "%s" "%s"' % (os.path.join(builddir, aname), fname)
696+
cmd = 'cp -av "%s" "%s"' % (os.path.join(builddir, aname), fname)
697697
do(cmd)
698698

699699
@FinetuningAction.register('set_partition_type')

0 commit comments

Comments
 (0)