Add header comment for POSIX compliant scripts

upstream: fedora
resolves: bz2003832
conflict: none

commit ee337c6f497a92a12848a85dcce468c1a4bcd14f
Author: Kairui Song <kasong@redhat.com>
Date:   Mon Sep 13 03:38:14 2021 +0800

    Add header comment for POSIX compliant scripts

    To make things cleaner and more human readable, add a short comment for
    the POSIX scripts.

    Signed-off-by: Kairui Song <kasong@redhat.com>
    Acked-by: Philipp Rudo <prudo@redhat.com>

Signed-off-by: Tao Liu <ltao@redhat.com>
This commit is contained in:
Tao Liu 2021-11-03 19:36:46 +08:00
parent a42769a32c
commit 050f80ef36
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
#
# The main kdump routine in capture kernel
#
# The main kdump routine in capture kernel, bash may not be the
# default shell. Any code added must be POSIX compliant.
. /lib/dracut-lib.sh
. /lib/kdump-logger.sh

View File

@ -1,7 +1,7 @@
#!/bin/sh
#
# Function and variables used in initramfs environment, POSIX compatible
#
# The code in this file will be used in initramfs environment, bash may
# not be the default shell. Any code added must be POSIX compliant.
DEFAULT_PATH="/var/crash/"
KDUMP_CONFIG_FILE="/etc/kdump.conf"

View File

@ -34,6 +34,8 @@
# First of all you have to start with dlog_init() function which initializes
# required variables. Don't call any other logging function before that one!
#
# The code in this file might be run in an environment without bash.
# Any code added must be POSIX compliant.
# Define vairables for the log levels in this module.
kdump_stdloglvl=""