Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M mkinitcpio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
    • Locked files
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • Mkinitcpio
  • mkinitcpio
  • Merge requests
  • !190

Make mkinitcpio create UKIs by default if the layout is set to uki in a file understood by kernel-install

  • Review changes

  • Download
  • Patches
  • Plain diff
Open cedric cvl requested to merge clavelc/mkinitcpio:clavelc-master-patch-29385 into master Jan 04, 2023
  • Overview 36
  • Commits 1
  • Pipelines 22
  • Changes 2

This needs !188 (merged) first to work properly (but can be adapted without)

The idea is to respect layout=uki if it is set in one of the files or environment variables understood by kernel-install.

The setting could possibly be checked elsewhere as well (mkinitcpio.conf ?), but reading kernel-install inspect has the major advantage that this can be set during a vanilla Arch install, before running pacstrap. Meaning that, just setting layout=uki prior to running pacstrap will automatically generate the proper preset files for UKI generation.

Happy to hear your thoughts !

Did some tests with linux-lts and linux-hardened, and everything seems to work quite well.

Caveats :

  • this kind of breaks the pacsave logic, as the comparison finds that linux-foo.preset is different from /usr/share/mkinitcpio/hooks.preset. But this happens in the same way if modifying the preset by hand, so unsure if it's a real problem.
  • We might need to add a check that /efi/EFI/Linux/ exists

Maybe we can also re-use this logic to avoid copying the kernel to /boot when using UKIs

Edited Jan 12, 2023 by cedric cvl
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: clavelc-master-patch-29385