mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdev/dracut/95zdev: non-functional changes and annotations for shellcheck
Clears all shellcheck reports in old existing code so newly added code can use shellcheck to find newly introduced suboptimal shell code. Github-ID: https://github.com/ibm-s390-linux/s390-tools/pull/158 Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com> 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:
committed by
Jan Höppner
parent
1266f86444
commit
6b53378839
@@ -14,13 +14,14 @@
|
||||
#
|
||||
|
||||
check() {
|
||||
local _arch=$(uname -m)
|
||||
local _arch
|
||||
_arch=$(uname -m)
|
||||
|
||||
# Ensure that we're running on s390
|
||||
[ "$_arch" = "s390" -o "$_arch" = "s390x" ] || return 1
|
||||
[ "$_arch" = "s390" ] || [ "$_arch" = "s390x" ] || return 1
|
||||
|
||||
# shellcheck disable=SC2154 source=/dev/null
|
||||
source "$moddir/zdev-lib.sh"
|
||||
# shellcheck source=/dev/null
|
||||
source "${moddir:?}/zdev-lib.sh"
|
||||
|
||||
# Leave kdump device configuration to module zdev-kdump to
|
||||
# ensure a minimal device footprint
|
||||
@@ -80,7 +81,7 @@ install() {
|
||||
done
|
||||
|
||||
# Apply via --import to prevent other devices from being configured
|
||||
chzdev --import "$_tempfile" --persistent --base "/etc=$initdir/etc" \
|
||||
chzdev --import "$_tempfile" --persistent --base "/etc=${initdir:?}/etc" \
|
||||
--yes --quiet --no-root-update --force >/dev/null
|
||||
# Apply site-specific configurations via --import
|
||||
for (( site=0; site<10; site++ ))
|
||||
|
||||
Reference in New Issue
Block a user