mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-13 12:59:45 +00:00
tools: acrn-crashlog: update core_pattern content conditionally
This patch is to improve the way of updating the core_pattern content in the shell script, since the previous configuration in core_pattern will block coredumpctl. This patch adds an inspection before changing the content of core_pattern. Signed-off-by: CHEN Gang <gang.c.chen@intel.com> Reviewed-by: Zhi Jin <zhi.jin@intel.com> Reviewed-by: xiaojin2 <xiaojing.liu@intel.com> Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> Acked-by: Zhang Di <di.zhang@intel.com>
This commit is contained in:
@@ -54,8 +54,11 @@ Usage
|
||||
*****
|
||||
|
||||
- The server is launched automatically at boot, and the client is configured in
|
||||
``core_pattern``. The content of ``core_pattern`` is configured as
|
||||
``usercrash_c`` while booting up:
|
||||
``core_pattern`` or ``coredump-wrapper``. In ``prepare.service``, it will
|
||||
check the content of ``/proc/sys/kernel/core_pattern``. If there is
|
||||
``coredump-wrapper``, which means that ``core_pattern`` has been set in
|
||||
``systemd``, no need to do it again. Otherwise, the content should be
|
||||
changed by:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
|
Reference in New Issue
Block a user