diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-07-02 14:45:07 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-07-12 09:24:43 +0200 |
commit | b9b55a884bcc111c5f9bab3df958b6bd71ee25e5 (patch) | |
tree | 17561f83dcf9086f6f22db8a3397e293480dff87 /src/kernel-install | |
parent | 852f98d6aae691574a933691b34133f35958b0d8 (diff) | |
download | systemd-b9b55a884bcc111c5f9bab3df958b6bd71ee25e5.tar.gz |
kernel-install: use set -e
This means that we'll fail hard if something goes wrong, e.g. reading
of a config file. I think this is appropriate. If errors should be ignored,
the caller should do that on their end.
Diffstat (limited to 'src/kernel-install')
-rwxr-xr-x | src/kernel-install/50-depmod.install | 2 | ||||
-rwxr-xr-x | src/kernel-install/90-loaderentry.install | 2 | ||||
-rwxr-xr-x | src/kernel-install/kernel-install.in | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel-install/50-depmod.install b/src/kernel-install/50-depmod.install index b43333762b..d4b991cfd6 100755 --- a/src/kernel-install/50-depmod.install +++ b/src/kernel-install/50-depmod.install @@ -18,6 +18,8 @@ # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <https://www.gnu.org/licenses/>. +set -e + COMMAND="${1:?}" KERNEL_VERSION="${2:?}" diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install index 96e24194c4..b34bbd83cd 100755 --- a/src/kernel-install/90-loaderentry.install +++ b/src/kernel-install/90-loaderentry.install @@ -18,6 +18,8 @@ # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <https://www.gnu.org/licenses/>. +set -e + COMMAND="${1:?}" KERNEL_VERSION="${2:?}" ENTRY_DIR_ABS="${3:?}" diff --git a/src/kernel-install/kernel-install.in b/src/kernel-install/kernel-install.in index 30b28f4658..a597e41133 100755 --- a/src/kernel-install/kernel-install.in +++ b/src/kernel-install/kernel-install.in @@ -20,6 +20,8 @@ skip_remaining=77 +set -e + usage() { echo "Usage:" |