fix up script
This commit is contained in:
parent
813acedf84
commit
beebdaa105
@ -52,6 +52,7 @@
|
||||
- 'minimal'
|
||||
- 'BaseOS'
|
||||
variant: 'minimal'
|
||||
volname: 'dvd'
|
||||
BaseOS:
|
||||
disc: False
|
||||
isoskip: True
|
||||
|
38
iso/empanadas/empanadas/templates/minimal/9/aarch64
Normal file
38
iso/empanadas/empanadas/templates/minimal/9/aarch64
Normal file
@ -0,0 +1,38 @@
|
||||
@minimal-environment
|
||||
@core
|
||||
@standard
|
||||
@base
|
||||
@guest-agents
|
||||
kernel
|
||||
lvm2
|
||||
bubblewrap
|
||||
efibootmgr
|
||||
efi-filesystem
|
||||
efivar-libs
|
||||
flashrom
|
||||
fwupd
|
||||
fwupd-plugin-flashrom
|
||||
gdisk
|
||||
glibc-langpack-en
|
||||
grub2
|
||||
grub2-efi-aa64
|
||||
langpacks-core-en
|
||||
langpacks-en
|
||||
libatasmart
|
||||
libblockdev
|
||||
libblockdev-crypto
|
||||
libblockdev-fs
|
||||
libblockdev-loop
|
||||
libblockdev-mdraid
|
||||
libblockdev-part
|
||||
libblockdev-swap
|
||||
libblockdev-utils
|
||||
libbytesize
|
||||
libgcab1
|
||||
libjcat
|
||||
libudisks2
|
||||
libxmlb
|
||||
mokutil
|
||||
shim-aa64
|
||||
udisks2
|
||||
volume_key-libs
|
33
iso/empanadas/empanadas/templates/minimal/9/ppc64le
Normal file
33
iso/empanadas/empanadas/templates/minimal/9/ppc64le
Normal file
@ -0,0 +1,33 @@
|
||||
@minimal-environment
|
||||
@core
|
||||
@standard
|
||||
@base
|
||||
@guest-agents
|
||||
kernel
|
||||
lvm2
|
||||
bubblewrap
|
||||
efi-filesystem
|
||||
flashrom
|
||||
fwupd
|
||||
fwupd-plugin-flashrom
|
||||
gdisk
|
||||
glibc-langpack-en
|
||||
grub2
|
||||
langpacks-core-en
|
||||
langpacks-en
|
||||
libatasmart
|
||||
libblockdev
|
||||
libblockdev-crypto
|
||||
libblockdev-fs
|
||||
libblockdev-loop
|
||||
libblockdev-mdraid
|
||||
libblockdev-part
|
||||
libblockdev-swap
|
||||
libblockdev-utils
|
||||
libbytesize
|
||||
libgcab1
|
||||
libjcat
|
||||
libudisks2
|
||||
libxmlb
|
||||
udisks2
|
||||
volume_key-libs
|
29
iso/empanadas/empanadas/templates/minimal/9/s390x
Normal file
29
iso/empanadas/empanadas/templates/minimal/9/s390x
Normal file
@ -0,0 +1,29 @@
|
||||
@minimal-environment
|
||||
@core
|
||||
@standard
|
||||
@base
|
||||
kernel
|
||||
lvm2
|
||||
bubblewrap
|
||||
efi-filesystem
|
||||
fwupd
|
||||
gdisk
|
||||
glibc-langpack-en
|
||||
langpacks-core-en
|
||||
langpacks-en
|
||||
libatasmart
|
||||
libblockdev
|
||||
libblockdev-crypto
|
||||
libblockdev-fs
|
||||
libblockdev-loop
|
||||
libblockdev-mdraid
|
||||
libblockdev-part
|
||||
libblockdev-swap
|
||||
libblockdev-utils
|
||||
libbytesize
|
||||
libgcab1
|
||||
libjcat
|
||||
libudisks2
|
||||
libxmlb
|
||||
udisks2
|
||||
volume_key-libs
|
39
iso/empanadas/empanadas/templates/minimal/9/x86_64
Normal file
39
iso/empanadas/empanadas/templates/minimal/9/x86_64
Normal file
@ -0,0 +1,39 @@
|
||||
@minimal-environment
|
||||
@core
|
||||
@standard
|
||||
@base
|
||||
@guest-agents
|
||||
kernel
|
||||
lvm2
|
||||
bubblewrap
|
||||
efibootmgr
|
||||
efi-filesystem
|
||||
efivar-libs
|
||||
flashrom
|
||||
fwupd
|
||||
fwupd-plugin-flashrom
|
||||
gdisk
|
||||
glibc-langpack-en
|
||||
grub2
|
||||
grub2-efi-x64
|
||||
langpacks-core-en
|
||||
langpacks-en
|
||||
libatasmart
|
||||
libblockdev
|
||||
libblockdev-crypto
|
||||
libblockdev-fs
|
||||
libblockdev-loop
|
||||
libblockdev-mdraid
|
||||
libblockdev-part
|
||||
libblockdev-swap
|
||||
libblockdev-utils
|
||||
libbytesize
|
||||
libgcab1
|
||||
libjcat
|
||||
libsmbios
|
||||
libudisks2
|
||||
libxmlb
|
||||
mokutil
|
||||
shim-x64
|
||||
udisks2
|
||||
volume_key-libs
|
@ -718,6 +718,15 @@ class IsoBuild:
|
||||
self.log.info(Color.WARN + 'Skipping ' + y + ' image')
|
||||
continue
|
||||
|
||||
# Kind of hacky, but if we decide to have more than boot/dvd iso's,
|
||||
# we need to make sure volname matches the initial lorax image,
|
||||
# which the volid contains "dvd". AKA, file name doesn't always
|
||||
# equate to volume ID
|
||||
if 'volname' in self.iso_map['images'][y]:
|
||||
volname = self.iso_map['images'][y]['volname']
|
||||
else:
|
||||
volname = y
|
||||
|
||||
for a in arches_to_build:
|
||||
lorax_path = os.path.join(self.lorax_work_dir, a, 'lorax', '.treeinfo')
|
||||
image_path = os.path.join(self.lorax_work_dir, a, y, '.treeinfo')
|
||||
@ -734,7 +743,7 @@ class IsoBuild:
|
||||
y,
|
||||
self.iso_map['images'][y]['repos'],
|
||||
)
|
||||
self._extra_iso_local_config(a, y, grafts, work_root)
|
||||
self._extra_iso_local_config(a, y, grafts, work_root, volname)
|
||||
|
||||
if self.extra_iso_mode == 'local':
|
||||
self._extra_iso_local_run(a, y, work_root)
|
||||
@ -747,7 +756,7 @@ class IsoBuild:
|
||||
if self.extra_iso_mode == 'podman':
|
||||
self._extra_iso_podman_run(arches_to_build, images_to_build, work_root)
|
||||
|
||||
def _extra_iso_local_config(self, arch, image, grafts, work_root):
|
||||
def _extra_iso_local_config(self, arch, image, grafts, work_root, volname):
|
||||
"""
|
||||
Local ISO build configuration - This generates the configuration for
|
||||
both mock and podman entries
|
||||
@ -798,7 +807,7 @@ class IsoBuild:
|
||||
self.minor_version,
|
||||
rclevel,
|
||||
arch,
|
||||
image
|
||||
volname
|
||||
)
|
||||
|
||||
isoname = '{}-{}.{}{}-{}-{}.iso'.format(
|
||||
|
@ -13,10 +13,12 @@ ret_val=$?
|
||||
if [ $ret_val -eq "0" ]; then
|
||||
TARGET="${PRODUCTION_ROOT}/${CATEGORY_STUB}/${REV:0:3}"
|
||||
mkdir -p "${TARGET}"
|
||||
echo "Syncing ${REVISION}"
|
||||
sudo -l && time fpsync -o '-av --numeric-ids --no-compress --chown=10004:10005' -n 18 -t /mnt/compose/partitions "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/" "${TARGET}/"
|
||||
|
||||
# Full file list update for production root
|
||||
cd "${PRODUCTION_ROOT}/" || echo { echo "Failed to change directory"; exit 1; }
|
||||
cd "${PRODUCTION_ROOT}/" || { echo "Failed to change directory"; exit 1; }
|
||||
echo "Getting a full file list for the root dir"
|
||||
find . > fullfilelist
|
||||
if [[ -f /usr/local/bin/create-filelist ]]; then
|
||||
# We're already here, but Justin Case wanted this
|
||||
@ -28,7 +30,9 @@ if [ $ret_val -eq "0" ]; then
|
||||
# Full file list update for rocky linux itself
|
||||
cd "${PRODUCTION_ROOT}/${CATEGORY_STUB}/" || { echo "Failed to change directory"; exit 1; }
|
||||
# Hardlink everything except xml files
|
||||
echo "Hard linking"
|
||||
hardlink -x '.*\.xml.*' "${REVISION}"
|
||||
echo "Getting a full file list for the rocky dir"
|
||||
find . > fullfilelist
|
||||
if [[ -f /usr/local/bin/create-filelist ]]; then
|
||||
# We're already here, but Justin Case wanted this
|
||||
|
Loading…
Reference in New Issue
Block a user