Compare commits
2 Commits
911f835bfb
...
20bf0812db
Author | SHA1 | Date | |
---|---|---|---|
20bf0812db | |||
6b236b7b5f |
@ -96,7 +96,8 @@ class ImageBuild:
|
|||||||
# Yes, this is gross. I'll fix it later.
|
# Yes, this is gross. I'll fix it later.
|
||||||
if self.image_type in ["Container"]:
|
if self.image_type in ["Container"]:
|
||||||
self.stage_commands = [
|
self.stage_commands = [
|
||||||
["tar", "-C", f"{self.outdir}", "--strip-components=1", "-x", "-f", lambda: f"{STORAGE_DIR}/{self.target_uuid}.body", "*/layer.tar"]
|
["tar", "-C", f"{self.outdir}", "--strip-components=1", "-x", "-f", lambda: f"{STORAGE_DIR}/{self.target_uuid}.body", "*/layer.tar"],
|
||||||
|
["xz", f"{self.outdir}/layer.tar"]
|
||||||
]
|
]
|
||||||
if self.image_type in ["GenericCloud"]:
|
if self.image_type in ["GenericCloud"]:
|
||||||
self.stage_commands = [
|
self.stage_commands = [
|
||||||
@ -124,6 +125,9 @@ class ImageBuild:
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
if self.stage_commands:
|
||||||
|
self.stage_commands += ["cp", "-v", lambda: f"{STORAGE_DIR}/{self.target_uuid}.meta", f"{self.outdir}/build.meta"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.mkdir(self.outdir)
|
os.mkdir(self.outdir)
|
||||||
except FileExistsError as e:
|
except FileExistsError as e:
|
||||||
|
@ -14,6 +14,7 @@ parser = argparse.ArgumentParser(description="Peridot Sync and Compose")
|
|||||||
|
|
||||||
# All of our options
|
# All of our options
|
||||||
parser.add_argument('--release', type=str, help="Major Release Version or major-type (eg 9-beta)", required=True)
|
parser.add_argument('--release', type=str, help="Major Release Version or major-type (eg 9-beta)", required=True)
|
||||||
|
parser.add_argument('--symlink', action='store_true', help="symlink")
|
||||||
parser.add_argument('--logger', type=str)
|
parser.add_argument('--logger', type=str)
|
||||||
|
|
||||||
# Parse them
|
# Parse them
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<version>{{minor}}</version>
|
<version>{{minor}}</version>
|
||||||
<arch>{{architecture}}</arch>
|
<arch>{{architecture}}</arch>
|
||||||
<install type='url'>
|
<install type='url'>
|
||||||
<url>https://download.rockylinux.org/pub/rocky/{{major}}/BaseOS/{{architecture}}/{{installdir}}</url>
|
<url>https://download.rockylinux.org/stg/rocky/{{major}}/BaseOS/{{architecture}}/{{installdir}}</url>
|
||||||
</install>
|
</install>
|
||||||
<icicle>
|
<icicle>
|
||||||
<extra_command>rpm -qa --qf '%{NAME},%{VERSION},%{RELEASE},%{ARCH},%{EPOCH},%{SIZE},%{SIGMD5},%{BUILDTIME}\n'</extra_command>
|
<extra_command>rpm -qa --qf '%{NAME},%{VERSION},%{RELEASE},%{ARCH},%{EPOCH},%{SIZE},%{SIGMD5},%{BUILDTIME}\n'</extra_command>
|
||||||
|
Loading…
Reference in New Issue
Block a user