summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins')
-rw-r--r--scripts/lib/wic/plugins/source/isoimage-isohybrid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
index de99ad8495..bc9928314c 100644
--- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
+++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
@@ -174,8 +174,8 @@ class IsoImagePlugin(SourcePlugin):
174 else: 174 else:
175 msger.error("Couldn't find or build initrd, exiting.\n") 175 msger.error("Couldn't find or build initrd, exiting.\n")
176 176
177 exec_cmd("find %s | cpio -o -H newc >%s/initrd.cpio " \ 177 exec_cmd("cd %s && find . | cpio -o -H newc -R +0:+0 >./initrd.cpio " \
178 % (initrd_dir, cr_workdir), as_shell=True) 178 % initrd_dir, as_shell=True)
179 exec_cmd("gzip -f -9 -c %s/initrd.cpio > %s" \ 179 exec_cmd("gzip -f -9 -c %s/initrd.cpio > %s" \
180 % (cr_workdir, initrd), as_shell=True) 180 % (cr_workdir, initrd), as_shell=True)
181 shutil.rmtree(initrd_dir) 181 shutil.rmtree(initrd_dir)