-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to use dl.fedoraproject.org and associated URLs #90
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,34 +4,34 @@ | |
from . import models | ||
|
||
|
||
KOJI_ROOT = "https://kojipkgs.fedoraproject.org/compose" | ||
COMPOSE_ROOT = "https://dl.fedoraproject.org/pub/alt/iot" | ||
|
||
AUTO_RUNREQS = { | ||
"fedora-iot-stable": { | ||
"type": "ok", | ||
"next": "fedora-installed", | ||
"compose_root": f"{KOJI_ROOT}/iot/latest-Fedora-IoT-32", | ||
"compose_root": f"{COMPOSE_ROOT}/32", | ||
"compose_name": "IoT", | ||
"clear_parts": True, | ||
"install_type": "ostree", | ||
"ostree": { | ||
"osname": "fedora-iot-stable", | ||
"remote": "fedora-iot", | ||
"repo": "https://kojipkgs.fedoraproject.org/compose/iot/repo/", | ||
"repo": "https://ostree.fedoraproject.org/iot/", | ||
"ref": "fedora/stable/:arch:/iot", | ||
}, | ||
}, | ||
"fedora-iot-rawhide": { | ||
"type": "ok", | ||
"next": "fedora-installed", | ||
"compose_root": f"{KOJI_ROOT}/iot/latest-Fedora-IoT-33", | ||
"compose_root": f"{COMPOSE_ROOT}/rawhide", | ||
"compose_name": "IoT", | ||
"clear_parts": True, | ||
"install_type": "ostree", | ||
"ostree": { | ||
"osname": "fedora-iot-rawhide", | ||
"remote": "fedora-iot", | ||
"repo": "https://kojipkgs.fedoraproject.org/compose/iot/repo/", | ||
"repo": "https://ostree.fedoraproject.org/iot/", | ||
"ref": "fedora/rawhide/:arch:/iot", | ||
}, | ||
}, | ||
|
@@ -54,8 +54,8 @@ def generate_auto_runreq(sender, instance, **kwargs): | |
instance.type = info["type"] | ||
|
||
if "compose_root" in info: | ||
compose_url = f"{info['compose_root']}/compose/{info['compose_name']}/:arch:/os" | ||
instance.kernel_url = f"{compose_url}/isolinux/vmlinuz" | ||
compose_url = f"{info['compose_root']}/{info['compose_name']}/:arch:/os" | ||
instance.kernel_url = f"{compose_url}/images/pxeboot/vmlinuz" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The vmlinuz and initrd here aren't actually used, https://github.com/fedora-iot/zezere/blob/master/zezere/__init__.py#L17 means we download the current f32 initrd/vmlinuz for supported arches and those get used for all trees. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, so we effectively cache them local to zezere? |
||
instance.kernel_cmd = " ".join( | ||
[ | ||
f"inst.repo={compose_url}", | ||
|
@@ -67,7 +67,7 @@ def generate_auto_runreq(sender, instance, **kwargs): | |
"ip=dhcp", | ||
] | ||
) | ||
instance.initrd_url = f"{compose_url}/isolinux/initrd.img" | ||
instance.initrd_url = f"{compose_url}/images/pxeboot/initrd.img" | ||
|
||
settings = {"clear_parts": info.get("clear_parts"), "raw": info} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is still useful though, since it decides where the stage2 (anaconda) gets pulled from.