summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/engine.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/engine.py')
-rw-r--r--scripts/lib/wic/engine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
index 4662c665c0..97f5e848cc 100644
--- a/scripts/lib/wic/engine.py
+++ b/scripts/lib/wic/engine.py
@@ -331,7 +331,7 @@ class Disk:
331 def copy(self, src, pnum, path): 331 def copy(self, src, pnum, path):
332 """Copy partition image into wic image.""" 332 """Copy partition image into wic image."""
333 if self.partitions[pnum].fstype.startswith('ext'): 333 if self.partitions[pnum].fstype.startswith('ext'):
334 cmd = "echo -e 'cd {}\nwrite {} {}' | {} -w {}".\ 334 cmd = "printf 'cd {}\nwrite {} {}' | {} -w {}".\
335 format(path, src, os.path.basename(src), 335 format(path, src, os.path.basename(src),
336 self.debugfs, self._get_part_image(pnum)) 336 self.debugfs, self._get_part_image(pnum))
337 else: # fat 337 else: # fat