forked from sig_core/toolkit
initial boot images should have dvd in the volid
This commit is contained in:
parent
1e043ee714
commit
57d51dadc7
@ -54,7 +54,7 @@ class Utils:
|
|||||||
base = os.path.basename(path)
|
base = os.path.basename(path)
|
||||||
# This emulates our current syncing scripts that runs stat and
|
# This emulates our current syncing scripts that runs stat and
|
||||||
# sha256sum and what not with a very specific output.
|
# sha256sum and what not with a very specific output.
|
||||||
return "%s: %s bytes\n%s (%s) = %s" % (
|
return "%s: %s bytes\n%s (%s) = %s\n" % (
|
||||||
base,
|
base,
|
||||||
stat.st_size,
|
stat.st_size,
|
||||||
hashtype.upper(),
|
hashtype.upper(),
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
'9-beta':
|
'9-beta':
|
||||||
fullname: 'Rocky Linux 9'
|
fullname: 'Rocky Linux 9'
|
||||||
revision: '9.1'
|
revision: '9.1'
|
||||||
rclvl: 'RC1'
|
rclvl: 'BETA1'
|
||||||
major: '9'
|
major: '9'
|
||||||
minor: '1'
|
minor: '1'
|
||||||
bugurl: 'https://bugs.rockylinux.org'
|
bugurl: 'https://bugs.rockylinux.org'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
'9-lookahead':
|
'9-lookahead':
|
||||||
fullname: 'Rocky Linux 9'
|
fullname: 'Rocky Linux 9'
|
||||||
revision: '9.1'
|
revision: '9.1'
|
||||||
rclvl: 'RC1'
|
rclvl: 'LH1'
|
||||||
major: '9'
|
major: '9'
|
||||||
minor: '1'
|
minor: '1'
|
||||||
bugurl: 'https://bugs.rockylinux.org'
|
bugurl: 'https://bugs.rockylinux.org'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VOLID="{{ shortname }}-{{ major }}-{{ minor }}{{ rc }}-{{ arch }}-boot1"
|
VOLID="{{ shortname }}-{{ major }}-{{ minor }}{{ rc }}-{{ arch }}-dvd"
|
||||||
VARIANT="{{ variant }}"
|
VARIANT="{{ variant }}"
|
||||||
ARCH="{{ arch }}"
|
ARCH="{{ arch }}"
|
||||||
VERSION="{{ revision }}"
|
VERSION="{{ revision }}"
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# You should not be running this manually.
|
|
||||||
|
|
||||||
# everything should be logged like | tee -a {{ log_path }}/lorax-{{ arch }}-{{ date_stamp }}.log
|
|
||||||
# for the dvd, we need to rely on pulling from {{ entries_root }}/dvd-{{ arch }}-list
|
|
||||||
|
|
||||||
# Run the base lorax steps into a work dir specific to its arch
|
|
||||||
# copy everything into BaseOS/arch/os
|
|
@ -824,17 +824,16 @@ class IsoBuild:
|
|||||||
# Set default variant
|
# Set default variant
|
||||||
ti.dump(treeinfo, main_variant=primary)
|
ti.dump(treeinfo, main_variant=primary)
|
||||||
|
|
||||||
def discinfo_write(self):
|
def discinfo_write(self, file_path, arch):
|
||||||
"""
|
"""
|
||||||
Ensure discinfo is written correctly
|
Ensure discinfo is written correctly
|
||||||
"""
|
"""
|
||||||
#with open(file_path, "w") as f:
|
with open(file_path, "w+") as f:
|
||||||
# f.write("%s\n" % self.timestamp)
|
f.write("%s\n" % self.timestamp)
|
||||||
# f.write("%s\n" % self.fullname)
|
f.write("%s\n" % self.fullname)
|
||||||
# f.write("%s\n" % self.arch)
|
f.write("%s\n" % arch)
|
||||||
# if disc_numbers:
|
f.write("ALL\n")
|
||||||
# f.write("%s\n" % ",".join([str(i) for i in disc_numbers]))
|
f.close()
|
||||||
print()
|
|
||||||
|
|
||||||
def write_media_repo(self):
|
def write_media_repo(self):
|
||||||
"""
|
"""
|
||||||
@ -945,12 +944,6 @@ class IsoBuild:
|
|||||||
if self.extra_iso_mode == 'podman':
|
if self.extra_iso_mode == 'podman':
|
||||||
self._extra_iso_podman_run(arches_to_build, images_to_build, work_root)
|
self._extra_iso_podman_run(arches_to_build, images_to_build, work_root)
|
||||||
|
|
||||||
def _extra_iso_podman_checksum(self, arch, image, work_root):
|
|
||||||
"""
|
|
||||||
Generate checksum on the fly post-podman run
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
def _extra_iso_local_config(self, arch, image, grafts, work_root):
|
def _extra_iso_local_config(self, arch, image, grafts, work_root):
|
||||||
"""
|
"""
|
||||||
Local ISO build configuration - This generates the configuration for
|
Local ISO build configuration - This generates the configuration for
|
||||||
@ -1099,7 +1092,6 @@ class IsoBuild:
|
|||||||
os.chmod(mock_sh_path, 0o755)
|
os.chmod(mock_sh_path, 0o755)
|
||||||
os.chmod(iso_template_path, 0o755)
|
os.chmod(iso_template_path, 0o755)
|
||||||
|
|
||||||
|
|
||||||
def _extra_iso_local_run(self, arch, image, work_root):
|
def _extra_iso_local_run(self, arch, image, work_root):
|
||||||
"""
|
"""
|
||||||
Runs the actual local process using mock
|
Runs the actual local process using mock
|
||||||
@ -1248,6 +1240,19 @@ class IsoBuild:
|
|||||||
'Building ' + i + ' completed'
|
'Building ' + i + ' completed'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if len(bad_exit_list) == 0:
|
||||||
|
self.log.info(
|
||||||
|
'[' + Color.BOLD + Color.GREEN + 'INFO' + Color.END + '] ' +
|
||||||
|
'Copying ISOs over to compose directory...'
|
||||||
|
)
|
||||||
|
print()
|
||||||
|
else:
|
||||||
|
self.log.error(
|
||||||
|
'[' + Color.BOLD + Color.RED + 'FAIL' + Color.END + '] ' +
|
||||||
|
'There were issues with the work done. As a result, ' +
|
||||||
|
'the ISOs will not be copied.'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _generate_graft_points(
|
def _generate_graft_points(
|
||||||
self,
|
self,
|
||||||
|
Loading…
Reference in New Issue
Block a user