Re: [PATCH v4] Let user specify the action after fail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 29.03.2013 11:36, schrieb Baoquan He:
> Currently the default action is emergency_shell when failure happened
> during system boot. In kdump, this default may not be expected. E.g,
> if dump target is not rootfs, it does not matter if mount root failed.
> Adding an action which allow dracut always go ahead though failure
> happens is needed by kdump.
> 
> So here add a function action_on_fail() and cmdline parameter
> action_on_fail=<shell | continue>. Use action_to_fail() to replace
> emergency_shell which was called after failure. By $(getarg action_on_fail=),
> decide to drop into shell, or to leave away the failure and go ahead.
> 
> v3->v4:
> add handling of selinux policy loaded failure, and change code format to
> be consitent
> 
> Signed-off-by: Baoquan He <bhe@xxxxxxxxxx>
> ---

applied and slightly edited

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux