summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic')
-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 4a0a57ef9e..25a695da17 100644
--- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
+++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
@@ -194,7 +194,7 @@ class IsoImagePlugin(SourcePlugin):
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 >./initrd.cpio " \
195 % initrd_dir, as_shell=True) 195 % initrd_dir, as_shell=True)
196 exec_cmd("gzip -f -9 -c %s/initrd.cpio > %s" \ 196 exec_cmd("gzip -f -9 -c %s/initrd.cpio > %s" \
197 % (cr_workdir, initrd), as_shell=True) 197 % (initrd_dir, initrd), as_shell=True)
198 shutil.rmtree(initrd_dir) 198 shutil.rmtree(initrd_dir)
199 199
200 return initrd 200 return initrd
@@ -317,7 +317,7 @@ class IsoImagePlugin(SourcePlugin):
317 grub_src = os.path.join(deploy_dir, grub_src_image) 317 grub_src = os.path.join(deploy_dir, grub_src_image)
318 if not os.path.exists(grub_src): 318 if not os.path.exists(grub_src):
319 raise WicError("Grub loader %s is not found in %s. " 319 raise WicError("Grub loader %s is not found in %s. "
320 "Please build grub-efi first" % (grub_image, deploy_dir)) 320 "Please build grub-efi first" % (grub_src_image, deploy_dir))
321 shutil.copy(grub_src, grub_target) 321 shutil.copy(grub_src, grub_target)
322 322
323 if not os.path.isfile(os.path.join(target_dir, "boot.cfg")): 323 if not os.path.isfile(os.path.join(target_dir, "boot.cfg")):