zdev/dracut: add shellcheck annotations for recently added code

The annotations and the one non-functional code change in
zdev/dracut/95zdev-kdump/module-setup.sh check() clear all shellcheck
reports.

complements
73c46a3056 ("zdev/dracut: fix kdump by only activating required devices")

Github-ID: https://github.com/ibm-s390-linux/s390-tools/pull/158
Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Acked-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Acked-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Steffen Maier
2023-07-24 17:10:24 +02:00
committed by Jan Höppner
parent 231c02cdeb
commit 1266f86444
3 changed files with 10 additions and 5 deletions
+1
View File
@@ -19,6 +19,7 @@ check() {
# Ensure that we're running on s390
[ "$_arch" = "s390" -o "$_arch" = "s390x" ] || return 1
# shellcheck disable=SC2154 source=/dev/null
source "$moddir/zdev-lib.sh"
# Leave kdump device configuration to module zdev-kdump to