#235 Issue closed: rebuild initramfs for all kernels

Labels: enhancement, waiting for info

goldzahn opened issue at 2013-06-07 11:59:

Hi,

I would appreciate it if rear would recreate initrd for all kernels that are listed in /etc/grub.conf while recovery, not only for the running one. This could avoid kernel panics if one boots a recovered server with a different kernel whose initramfs hadn't been recreated. This can easily happen, if the server runnig mkrescue has a newer kernel version installed than it is running and usually the "default=" in /etc/grub.conf is 0.

thanks and best regards
Tim

dagwieers commented at 2013-06-07 16:52:

This is a fair suggestion and should not be very difficult to implement.

Are you willing to contribute such a script ?

goldzahn commented at 2013-06-10 11:10:

I will give it a try
best regards
Tim

gdha commented at 2013-10-02 11:55:

@goldzahn please share your problems you have seen during your tests... I'm afraid the code could be half-broken? want to be sure...

goldzahn commented at 2013-10-11 11:02:

@gdha sorry for delay. The problems I saw were caused by my changes. Now it seems to work, I will file a pull request soon.

gdha commented at 2013-12-03 12:11:

@goldzahn any luck with scripting?

gdha commented at 2013-12-20 08:43:

@goldzahn does it still work after you merged pull request? If positive, then we can close this case I guess?

goldzahn commented at 2013-12-20 09:49:

@gdha yes, we can close it.


[Export of Github issue for rear/rear.]