-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initramfs out of sync after kernel update #88
Comments
I'll have a look at this and try to figure something out... |
When you build a new image, change the kernel version in
source |
I was hoping to be able to change the version without reinstalling 👼 |
You can do that too. Install |
makes sense, now that I know that linux-image-rpi-rpfv is just a meta package... |
what do you suggest should happen in these two scenarios:
|
well, there is also the possibility of asking the user, I guess, given that it's reasonably certain, that he's at the console, looking at the screen, right? 💭 although I don't really like this option 😊 |
I think when a new kernel is installed, there should be a post-action which copies the kernel as kernel.img and the initramfs as initrd.img. config.txt would point to these, and wouldn't have to be changed. So the last-installed kernel would always be the active one. Would that work, or would there be some problem that I'm not seeing? The official Raspbian installation must address this somehow; the only difference is that they don't use an initramfs, but we can do whatever they do for the kernel, but with the initramfs as well. |
of course, that's also a possibility... and actually might be the safest/best (and easiest to implement) one... I was trying to avoid making multiple copies and waste space |
works (well, seems to, at least) like a charm @diederikdehaas what branch would you like to put this in? v1.0.x? |
I haven't seen any code yet (or played) with it, but the answer is a topic branch 😉 |
well... when I'm on a roll, I'm not waiting for replies 😁 |
oh look... sorry, posted just as you replied 👼 also... just as a warning... don't play around with a system that has no kernel package installed... |
LOL, looks like you read my mind :-P |
😄 well, heading home... there I'll be able to try a full install |
seems to work just fine... PR waiting for review 😉 |
You are on a roll 👍 |
When upgrading the kernel package (linux-image-rpi-rpfv) the initramfs in /boot will be replaced (and named after the new version), but the config.txt file will still point to the old version. This may prevent booting, as the initramfs will contain modules for the previous kernel version.
A minimal workaround would be to update the README to tell users to modify /boot/config.txt to point to the new initrd.img-X.XX-X-rpi at the same time as copying their /vmlinuz to /boot/kernel.img.
I think a better solution would be to treat the initramfs like the kernel; i.e. you would have initrd.img in config.txt, and instructions in the README to copy /initrd.img to /boot/initrd.img. [This would duplicate the initramfs (4.4 M), just as the kernel (2.1 M) is duplicated, but there seems to be plenty of space on /boot currently.]
The text was updated successfully, but these errors were encountered: