Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

initramfs and Kernel updates

Thu Mar 27, 2014 3:54 pm

I'm using lvm2 on one of my raspis.
To do so I have to use an initramfs.
I use initramfs-tools to generate the initramfs file.

Now my question is:
What happens if the kernel gets updated by apt-get update and the new kernel is incompatible with the modules in the intramfs?
Does the kernel update fire a trigger for an initramfs update (like the installation of lvm did)?
What happens if the kernel version number changes and the config.txt needs to be changed to reflect the new file name?
On an ordinary x86 linux this is all handled automatically.

What I think will happen is that the system becomes unbootable and cannot easily be recovered.

Would it be possible to implement a mechanism to automatically update the initramfs (if one is configured) to the updated kernel?
Otherwise it's quite possible that the usage of initramfs for "mainstream" users is not practical on the pi.

Regards
Aydan

Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: initramfs and Kernel updates

Tue Apr 08, 2014 3:54 pm

I've read up some on deb-triggers but haven't found out anything definitive, but could the package maintainer for the package that contains the kernel and the modules please add triggering for the update of the initramfs?

Regards
Aydan

Return to “Advanced users”