On 05/06/2014 02:55 AM, Vivek Goyal wrote:
On Tue, Apr 29, 2014 at 07:27:55PM +0530, Hari Bathini wrote:
> Take a backup of original initrd when fadump is used first time or
> when user has switched from kdump to fadump. This will allow us to
> fall back to original initrd when kdump service fails to rebuild
> the fadump ready default initrd.
You should build an initrd into a separate temporary file and then
replace the original initrd to take care of this issue.
Identifying that fadump is being used for the first time maybe a challenge.
This makes it tricky on when to rebuild default initrd image with fadump
support.
Any suggestions on this would be of great help.
Thanks
Hari
> Also, if the user switches from
> fadump to kdump, then the original initrd will be restored when
> kdump script is run first time after the switch.
If user switches modes, that should trigger generataion of fresh initrd
instead of trying to restore from some backup.
Thanks
Vivek