|
@@ -191,10 +191,9 @@ class IsoImagePlugin(SourcePlugin):
|
|
|
else:
|
|
|
raise WicError("Couldn't find or build initrd, exiting.")
|
|
|
|
|
|
- exec_cmd("cd %s && find . | cpio -o -H newc -R root:root >./initrd.cpio " \
|
|
|
- % initrd_dir, as_shell=True)
|
|
|
- exec_cmd("gzip -f -9 -c %s/initrd.cpio > %s" \
|
|
|
- % (initrd_dir, initrd), as_shell=True)
|
|
|
+ exec_cmd("cd %s && find . | cpio -o -H newc -R root:root >%s/initrd.cpio " \
|
|
|
+ % (initrd_dir, cr_workdir), as_shell=True)
|
|
|
+ exec_cmd("gzip -f -9 %s/initrd.cpio" % cr_workdir, as_shell=True)
|
|
|
shutil.rmtree(initrd_dir)
|
|
|
|
|
|
return initrd
|