Fix dnf5 deferred transaction and add shadow-utils for user creation
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user