-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/linux-raspberrypi to 5.10.63-14
- Loading branch information
Showing
5 changed files
with
113 additions
and
177 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
dbd80e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit breaks rebuilding the initramfs, both for kernel and other upgrades such as the recent systemd update - see comments in this pull request #1767.
dbd80e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will need to look into this. Do you know how Arch is handling these rebuilds? I believe changes have been made to mkinitcpio which have been propagated here.
dbd80e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the mkinitcpio changes are here. I'm still figuring out exactly what ARCH does, I'm no expert, but AFAICT it uses this hook
/usr/share/libalpm/hooks/90-mkinitcpio-install.hook
which calls this script/usr/share/libalpm/scripts/mkinitcpio-install
from mkinitcpio and depending on the trigger conditions will install the kernel, do something with depmod and create a *.preset file automatically and generate the iniramfs. However, the trigger conditions seem to rely on the kernel being named vmlinuz and having vmlinuz in the path, which is why this change breaks.I haven't got a solution, its taken me sometime to work out why things stopped, but I can see a couple of potential ways forward. Neither are straightforward, as Kevin and eworm point out in the linked pull request.
First option copy the conventions of ARCH and rename the kernel, but I don't if know if just renaming the kernel will work because I haven't fully figured out the script. I do know it won't do anything with the device tree stuff. But how depmod works in ARCH and how it will interact with what you've done here I don't know.
Second option is use what you've done but also install a hook and preset, but this kinda feels like a step backward but might be the simplest.
As an aside - running
sudo mkinitcpio -g /boot/initramfs-linux.img
should regenerate the initramfs as long as your system is running