Switch to systemd-boot, full log sending, and offline install fix

This commit is contained in:
2026-02-05 12:59:24 +01:00
parent e99290eebe
commit be674e89e0
3 changed files with 334 additions and 58 deletions

View File

@@ -120,17 +120,17 @@ def install_minimal_os(mount_root, releasever="43"):
# Offline installation logic
iso_repo = "/run/install/repo"
dnf_offline_args = []
dnf_args = []
if os.path.exists(iso_repo):
logger.info(f"Found ISO repository at {iso_repo}. Using offline mode.")
dnf_offline_args = [
logger.info(f"Found ISO repository at {iso_repo}. Using strictly offline mode.")
dnf_args = [
"--disablerepo=*",
f"--repofrompath=iridium-iso,{iso_repo}",
"--enablerepo=iridium-iso"
]
else:
logger.warning(f"ISO repository not found at {iso_repo}. Falling back to host configuration.")
logger.warning(f"ISO repository not found at {iso_repo}. Trying to use host config (may require network).")
cmd = [
"dnf",
@@ -141,7 +141,7 @@ def install_minimal_os(mount_root, releasever="43"):
"--use-host-config",
"--setopt=install_weak_deps=False",
"--nodocs",
] + dnf_offline_args + packages
] + dnf_args + packages
with mount_pseudo_fs(mount_root):
run_command(cmd)