raise CreatorError("Tpk package missing.")
def postinstall(self):
- pass
+ self.copy_attachment()
def _get_sign_scripts_env(self):
"""Return an environment dict for %post-umount scripts.
self._check_imgdir()
- msger.info("Moving attachment files...")
+ msger.info("Copying attachment files...")
for item in self._attachment:
if not os.path.exists(item):
continue
dpath = os.path.join(self._imgdir, os.path.basename(item))
- msger.verbose("Move attachment %s to %s" % (item, dpath))
- shutil.move(item, dpath)
+ msger.verbose("Copy attachment %s to %s" % (item, dpath))
+ shutil.copy(item, dpath)
def move_post_umount_scripts(self):
scripts_dir = self._instroot + "/var/tmp/post_umount_scripts"
creator.configure(creatoropts["repomd"])
creator.copy_kernel()
- creator.copy_attachment()
creator.unmount()
creator.package(creatoropts["destdir"])
creator.create_manifest()
creator.tpkinstall()
creator.configure(creatoropts["repomd"])
creator.copy_kernel()
- creator.copy_attachment()
creator.create_cpio_image()
creator.unmount()
creator.copy_cpio_image()
creator.tpkinstall()
creator.configure(creatoropts["repomd"])
creator.copy_kernel()
- creator.copy_attachment()
creator.create_cpio_image()
creator.unmount()
creator.copy_cpio_image()
creator.tpkinstall()
creator.configure(creatoropts["repomd"])
creator.copy_kernel()
- creator.copy_attachment()
creator.unmount()
creator.generate_bmap()
creator.package(creatoropts["destdir"])