Skip to content

Commit

Permalink
9 > 10 POC
Browse files Browse the repository at this point in the history
  • Loading branch information
Rezney committed Apr 12, 2024
1 parent 6b722d6 commit 1e42b2b
Show file tree
Hide file tree
Showing 16 changed files with 184 additions and 710 deletions.
44 changes: 43 additions & 1 deletion etc/leapp/files/repomap.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,25 @@
]
}
]
}
},
{
"source_major_version": "9",
"target_major_version": "10",
"entries": [
{
"source": "rhel9-BaseOS",
"target": [
"rhel10-BaseOS"
]
},
{
"source": "rhel9-AppStream",
"target": [
"rhel10-AppStream"
]
}
]
}
],
"repositories": [
{
Expand Down Expand Up @@ -3887,6 +3905,30 @@
"rhui": "alibaba"
}
]
},
{
"pesid": "rhel10-AppStream",
"entries": [
{
"major_version": "10",
"repoid": "rhel-10-appstream-rpms",
"arch": "x86_64",
"channel": "ga",
"repo_type": "rpm"
}
]
},
{
"pesid": "rhel10-BaseOS",
"entries": [
{
"major_version": "10",
"repoid": "rhel-10-baseos-rpms",
"arch": "x86_64",
"channel": "ga",
"repo_type": "rpm"
}
]
}
],
"provided_data_streams": [
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
DEFAULT_PESID = {
'7': 'rhel7-base',
'8': 'rhel8-BaseOS',
'9': 'rhel9-BaseOS'
'9': 'rhel9-BaseOS',
'10': 'rhel9-BaseOS'
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"gpg-pubkey-db42a60e-37ea5438",
],
9: ["gpg-pubkey-d4082792-5b32db75"],
10: ["gpg-pubkey-d4082792-5b32db75"]
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
UNSUPPORTED_PESIDS = {
"7": "rhel7-optional",
"8": "rhel8-CRB",
"9": "rhel9-CRB"
"9": "rhel9-CRB",
"10": "rhel10-CRB"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def _copy_certificates(context, target_userspace):
backup_pki = os.path.join(target_userspace, 'etc', 'pki.backup')

with mounting.NspawnActions(base_dir=target_userspace) as target_context:
files_owned_by_rpms = _get_files_owned_by_rpms(target_context, '/etc/pki', recursive=True)
files_owned_by_rpms = _get_files_owned_by_rpms(target_context, '/etc/pki', recursive=False)
api.current_logger().debug('Files owned by rpms: {}'.format(' '.join(files_owned_by_rpms)))

# Backup container /etc/pki
Expand Down Expand Up @@ -602,7 +602,7 @@ def _prep_repository_access(context, target_userspace):
# NOTE(dkubek): context.call(['update-ca-trust']) seems to not be working.
# I am not really sure why. The changes to files are not
# being written to disk.
run(["chroot", target_userspace, "/bin/bash", "-c", "su - -c update-ca-trust"])
#run(["chroot", target_userspace, "/bin/bash", "-c", "su - -c update-ca-trust"])

if not rhsm.skip_rhsm():
run(['rm', '-rf', os.path.join(target_etc, 'rhsm')])
Expand Down
35 changes: 35 additions & 0 deletions repos/system_upgrade/common/files/prod-certs/10.0/479.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
-----BEGIN CERTIFICATE-----
MIIGFTCCA/2gAwIBAgIJALDxRLt/tVDQMA0GCSqGSIb3DQEBCwUAMIGuMQswCQYD
VQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExFjAUBgNVBAoMDVJlZCBI
YXQsIEluYy4xGDAWBgNVBAsMD1JlZCBIYXQgTmV0d29yazEuMCwGA1UEAwwlUmVk
IEhhdCBFbnRpdGxlbWVudCBQcm9kdWN0IEF1dGhvcml0eTEkMCIGCSqGSIb3DQEJ
ARYVY2Etc3VwcG9ydEByZWRoYXQuY29tMB4XDTIzMDcxOTE2MzQwOFoXDTQzMDcx
OTE2MzQwOFowRDFCMEAGA1UEAww5UmVkIEhhdCBQcm9kdWN0IElEIFsxZDg0ZDQ5
Ny1jZmNmLTQxNjEtOTM0YS0zNzk2MDU4M2ZmZGZdMIICIjANBgkqhkiG9w0BAQEF
AAOCAg8AMIICCgKCAgEAx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