summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/wic/plugins/source/isoimage-isohybrid.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
index 25a695da17..170077c22c 100644
--- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
+++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
@@ -191,10 +191,9 @@ class IsoImagePlugin(SourcePlugin):
191 else: 191 else:
192 raise WicError("Couldn't find or build initrd, exiting.") 192 raise WicError("Couldn't find or build initrd, exiting.")
193 193
194 exec_cmd("cd %s && find . | cpio -o -H newc -R root:root >./initrd.cpio " \ 194 exec_cmd("cd %s && find . | cpio -o -H newc -R root:root >%s/initrd.cpio " \
195 % initrd_dir, as_shell=True) 195 % (initrd_dir, cr_workdir), as_shell=True)
196 exec_cmd("gzip -f -9 -c %s/initrd.cpio > %s" \ 196 exec_cmd("gzip -f -9 %s/initrd.cpio" % cr_workdir, as_shell=True)
197 % (initrd_dir, initrd), as_shell=True)
198 shutil.rmtree(initrd_dir) 197 shutil.rmtree(initrd_dir)
199 198
200 return initrd 199 return initrd