Fix dnf5 deferred transaction and add shadow-utils for user creation

This commit is contained in:
2026-02-05 16:27:57 +01:00
parent afe18c1eee
commit f3e7122d02

View File

@@ -125,6 +125,8 @@ def install_minimal_os(mount_root, releasever="43"):
"systemd",
"systemd-boot-unsigned",
"dnf",
"shadow-utils",
"util-linux",
"efibootmgr",
"passwd",
"rootfiles",
@@ -156,13 +158,12 @@ def install_minimal_os(mount_root, releasever="43"):
"--disablerepo=*",
f"--repofrompath=iridium-iso,{iso_repo}",
"--enablerepo=iridium-iso",
"--offline",
"--cacheonly",
]
else:
logger.warning("ISO repository not found in common locations. DNF might try to use network.")
# Try to at least prevent some network usage
dnf_args = ["--offline"]
# Note: Avoid --offline in dnf5 as it defers the transaction to next boot.
dnf_args = []
cmd = [
"dnf",