orchestrator: pacstrap limine+efibootmgr in protected base install
configure_protected_boot used to arch-chroot pacman -S limine efibootmgr, but at that phase the live ISO's offline mirror is not bind-mounted into the target yet (run_chroot_finalizer does that later) and the target's pacman.conf points at network mirrors that aren't reachable during an offline install. Pacstrap these packages alongside the runtime package list in arch_install_base, where archinstall is still pacstrapping against the live ISO's offline mirror. Drop the now-redundant arch-chroot pacman call from configure_protected_boot.
This commit is contained in:
1 file changed
+7
-7
@@ -331,6 +331,13 @@ def arch_install_base(ctx: InstallContext) -> None:
|
|||||||
info("› installing Omarchy runtime + omarchy-base.packages")
|
info("› installing Omarchy runtime + omarchy-base.packages")
|
||||||
installer.add_additional_packages(_runtime_package_list(ctx))
|
installer.add_additional_packages(_runtime_package_list(ctx))
|
||||||
|
|
||||||
|
# Protected mode never calls add_bootloader, so pacstrap limine +
|
||||||
|
# efibootmgr here while the live ISO's offline mirror is still the
|
||||||
|
# active pacman source. Doing it later via arch-chroot would hit
|
||||||
|
# the target's network-mirror pacman.conf and fail offline.
|
||||||
|
info("› installing limine + efibootmgr (protected boot)")
|
||||||
|
installer.add_additional_packages(["limine", "efibootmgr"])
|
||||||
|
|
||||||
if config.timezone:
|
if config.timezone:
|
||||||
installer.set_timezone(config.timezone)
|
installer.set_timezone(config.timezone)
|
||||||
if config.ntp:
|
if config.ntp:
|
||||||
@@ -354,13 +361,6 @@ def arch_install_base(ctx: InstallContext) -> None:
|
|||||||
def configure_protected_boot(ctx: InstallContext) -> None:
|
def configure_protected_boot(ctx: InstallContext) -> None:
|
||||||
protected = ctx.state["protected"]
|
protected = ctx.state["protected"]
|
||||||
|
|
||||||
info("› ensuring limine + efibootmgr installed in target")
|
|
||||||
subprocess.run(
|
|
||||||
["arch-chroot", str(ctx.target), "pacman", "-S",
|
|
||||||
"--needed", "--noconfirm", "limine", "efibootmgr"],
|
|
||||||
check=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
info("› writing /etc/fstab")
|
info("› writing /etc/fstab")
|
||||||
_write_fstab(ctx, protected)
|
_write_fstab(ctx, protected)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user