Skip to content

linux-asahi: move out of boot#60583

Open
dkwo wants to merge 2 commits into
void-linux:masterfrom
dkwo:asahi-kernel
Open

linux-asahi: move out of boot#60583
dkwo wants to merge 2 commits into
void-linux:masterfrom
dkwo:asahi-kernel

Conversation

@dkwo
Copy link
Copy Markdown
Contributor

@dkwo dkwo commented May 16, 2026

  • I tested the changes in this PR: yes
  • I built this PR locally for my native architecture, (aarch64-glibc)

The move out of /boot requires changes to mkimage and docs.

[ci skip] as this is hooks.

@dkwo dkwo force-pushed the asahi-kernel branch 2 times, most recently from 297645d to f5931ef Compare May 16, 2026 09:00
Copy link
Copy Markdown
Member

@classabbyamp classabbyamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm supportive of moving kernels out of boot, but we should come up with a unified methodology for all kernels before doing it on a device-specific kernel. it should be generic enough that it doesn't need to be shoe-horned into the m1n1 hooks.

Comment thread srcpkgs/linux-asahi/update
@classabbyamp
Copy link
Copy Markdown
Member

classabbyamp commented May 16, 2026

also, if this change even happens, it should have an install message if it requires manual user intervention

@dkwo
Copy link
Copy Markdown
Contributor Author

dkwo commented May 18, 2026

The generic method would be post-{install,remove} hooks (before initramfs ones) that copy stuff into /boot. I thought about it, but for asahi (and also for uefi uki) it makes more sense to have a single hook (especially when m1n1 payload is kernel, which could then be signed): this way we only write to /boot what is needed, and as a side effect the user does not try to use an unsupported initramfs.

@yushisora
Copy link
Copy Markdown
Contributor

I think mkinitcpio should also be one of the supported initramfs since asahi-scripts does provide hooks for asahi.

@classabbyamp
Copy link
Copy Markdown
Member

classabbyamp commented May 18, 2026

yes, this change (moving kernels out of boot) cannot happen unless it's supported by all initramfs hooks.

if you want kernels out of boot, make a separate proposal for a generic solution, and leave this PR just for updating the kernel

@dkwo
Copy link
Copy Markdown
Contributor Author

dkwo commented May 19, 2026

I think I found a way that works with all initramfs, please have a look. Update will be moved into a separate pr.

@dkwo dkwo changed the title linux-asahi: update to 7.0, move out of boot linux-asahi: move out of boot May 19, 2026
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.

3 participants