Fix dnf error by removing localpkg_only and improve repo search
This commit is contained in:
@@ -137,6 +137,7 @@ def install_minimal_os(mount_root, releasever="43"):
|
|||||||
"/run/install/source",
|
"/run/install/source",
|
||||||
"/mnt/install/repo",
|
"/mnt/install/repo",
|
||||||
"/run/initramfs/live",
|
"/run/initramfs/live",
|
||||||
|
"/run/initramfs/isoscan",
|
||||||
]
|
]
|
||||||
|
|
||||||
iso_repo = None
|
iso_repo = None
|
||||||
@@ -156,11 +157,12 @@ def install_minimal_os(mount_root, releasever="43"):
|
|||||||
f"--repofrompath=iridium-iso,{iso_repo}",
|
f"--repofrompath=iridium-iso,{iso_repo}",
|
||||||
"--enablerepo=iridium-iso",
|
"--enablerepo=iridium-iso",
|
||||||
"--offline",
|
"--offline",
|
||||||
|
"--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
|
# Try to at least prevent some network usage
|
||||||
dnf_args = ["--setopt=localpkg_only=1", "--offline"]
|
dnf_args = ["--offline"]
|
||||||
|
|
||||||
cmd = [
|
cmd = [
|
||||||
"dnf",
|
"dnf",
|
||||||
|
|||||||
Reference in New Issue
Block a user