diff options
author | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2024-02-06 10:25:48 +0300 |
---|---|---|
committer | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2024-06-19 05:42:16 +0300 |
commit | 7c4a06270c802cb56ea054c366b2eea235984986 (patch) | |
tree | df648e7dfb39d304f4d2f982245cf02db9a5f25b /meta-ampere | |
parent | 916cce38761abce6e378f4c5722849319bcfafa8 (diff) | |
download | openbmc-7c4a06270c802cb56ea054c366b2eea235984986.tar.xz |
meta-ampere: systemd-logger: change to logger
Change to use logger --journald command from the util-linux package.
Change-Id: Ifeb3927410c51b3b3f03a7a17ad16f6cdee38563
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Diffstat (limited to 'meta-ampere')
3 files changed, 7 insertions, 7 deletions
diff --git a/meta-ampere/meta-common/recipes-ampere/host/ac01-boot-progress/ampere_boot_progress.sh b/meta-ampere/meta-common/recipes-ampere/host/ac01-boot-progress/ampere_boot_progress.sh index 7c5edbf68c..c24cc4a0be 100755 --- a/meta-ampere/meta-common/recipes-ampere/host/ac01-boot-progress/ampere_boot_progress.sh +++ b/meta-ampere/meta-common/recipes-ampere/host/ac01-boot-progress/ampere_boot_progress.sh @@ -122,7 +122,7 @@ function set_boot_progress() function log_redfish_biosboot_ok_event() { - logger-systemd --journald << EOF + logger --journald << EOF MESSAGE= PRIORITY=2 SEVERITY= @@ -135,7 +135,7 @@ function log_redfish_bios_panic_event() { boot_state_str=$(get_boot_stage_string "$1" "$2") - logger-systemd --journald << EOF + logger --journald << EOF MESSAGE= PRIORITY=2 SEVERITY= diff --git a/meta-ampere/meta-common/recipes-ampere/host/ac01-boot-progress/dimm_train_fail_log.sh b/meta-ampere/meta-common/recipes-ampere/host/ac01-boot-progress/dimm_train_fail_log.sh index f1f64c1155..1a65647120 100644 --- a/meta-ampere/meta-common/recipes-ampere/host/ac01-boot-progress/dimm_train_fail_log.sh +++ b/meta-ampere/meta-common/recipes-ampere/host/ac01-boot-progress/dimm_train_fail_log.sh @@ -16,7 +16,7 @@ function log_ampere_oem_redfish_event() msgArgs1=$5 msgArgs2=$6 -logger-systemd --journald << EOF +logger --journald << EOF MESSAGE=${msg} PRIORITY=${priority} SEVERITY=${severity} diff --git a/meta-ampere/meta-common/recipes-ampere/platform/ampere-utils/ampere_add_redfishevent.sh b/meta-ampere/meta-common/recipes-ampere/platform/ampere-utils/ampere_add_redfishevent.sh index 1170c6a7ca..ddbf8d7f84 100644 --- a/meta-ampere/meta-common/recipes-ampere/platform/ampere-utils/ampere_add_redfishevent.sh +++ b/meta-ampere/meta-common/recipes-ampere/platform/ampere-utils/ampere_add_redfishevent.sh @@ -9,15 +9,15 @@ if [ -z "$registry" ]; then exit fi -# Check if logger-systemd exist. Do nothing if not exists -if ! command -v logger-systemd; +# Check if logger exist. Do nothing if not exists +if ! logger --help | grep journald then - echo "logger-systemd does not exist. Skip log events for $registry $msgarg" + echo "logger does not support the journald option. Skip log events for $registry $msgarg" exit fi # Log events -logger-systemd --journald << EOF +logger --journald << EOF MESSAGE= PRIORITY= SEVERITY= |