image: remove bash options from sourced scripts

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2022-11-17 10:24:38 +01:00
parent 4847b71faa
commit cca02597c8
3 changed files with 4 additions and 5 deletions

View File

@ -3,8 +3,7 @@
# #
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
set -euo pipefail # Note: This script is sourced.
shopt -s inherit_errexit
export PATH=/run/state/bin:${PATH} export PATH=/run/state/bin:${PATH}
export KUBECONFIG=/etc/kubernetes/admin.conf export KUBECONFIG=/etc/kubernetes/admin.conf

View File

@ -3,9 +3,7 @@
# #
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
# warning: file is loaded by dracut, so default "set" and "shopt" options are not set # Note: This script is sourced.
# set -euo pipefail
# shopt -s inherit_errexit
depends() { depends() {
echo systemd echo systemd

View File

@ -3,6 +3,8 @@
# #
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
# Note: This script is sourced.
depends() { depends() {
# expands to: systemd systemd-hostnamed systemd-networkd systemd-resolved systemd-timedated systemd-timesyncd # expands to: systemd systemd-hostnamed systemd-networkd systemd-resolved systemd-timedated systemd-timesyncd
echo systemd-network-management echo systemd-network-management