Skip to content

Install mkinitcpio explicitly in base packages#4484

Merged
svartkanin merged 2 commits intoarchlinux:masterfrom
Softer:fix-issue-4368-mkinitcpio
Apr 28, 2026
Merged

Install mkinitcpio explicitly in base packages#4484
svartkanin merged 2 commits intoarchlinux:masterfrom
Softer:fix-issue-4368-mkinitcpio

Conversation

@Softer
Copy link
Copy Markdown
Contributor

@Softer Softer commented Apr 27, 2026

Fixes #4368

Summary

When archinstall runs from a non-Arch host (e.g. EndeavourOS), pacstrap may pick dracut or booster as the initramfs provider instead of mkinitcpio. The installer then crashes on missing mkinitcpio.conf, the binary, or .preset files (#4368).

Adding mkinitcpio to __packages__ makes pacstrap install it deterministically. Per @codefiles' analysis in the issue thread, the fix has to happen at pacstrap time, not in _config_uki(), because minimal_installation() calls self.mkinitcpio(['-P']) earlier.

Prevents pacstrap from picking a different initramfs provider
(dracut, booster) when running from a non-Arch host.

Fixes archlinux#4368
@svartkanin
Copy link
Copy Markdown
Collaborator

Could you rebase/merge

# Conflicts:
#	archinstall/lib/installer.py
@Softer
Copy link
Copy Markdown
Contributor Author

Softer commented Apr 28, 2026

Could you rebase/merge

Sure! Done.

@svartkanin svartkanin merged commit e1efa34 into archlinux:master Apr 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[archinstall] No such file or directory: '/mnt/etc/mkinitcpio.d/linux-lts.preset'

3 participants