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