Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Commit

Permalink
syscontainer: support rpm embedded in the image
Browse files Browse the repository at this point in the history
If an rpm file is already present the the container image. just use
it.

Signed-off-by: Giuseppe Scrivano <[email protected]>

Closes: #767
Approved by: rhatdan
  • Loading branch information
giuseppe authored and rh-atomic-bot committed Mar 22, 2017
1 parent 5f3a498 commit 640e3e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Atomic/syscontainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1644,6 +1644,10 @@ def generate_rpm(self, repo, auto, name, image):
if self.display:
return None

included_rpm = os.path.join(rootfs, "rootfs", "exports", "container.rpm")
if os.path.exists(included_rpm):
return included_rpm

installed_files = None
with open(os.path.join(rootfs, "info"), "r") as info_file:
info = json.loads(info_file.read())
Expand Down

0 comments on commit 640e3e7

Please sign in to comment.