]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kernel-install: use set -e
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 2 Jul 2022 12:45:07 +0000 (14:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Jul 2022 07:24:43 +0000 (09:24 +0200)
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.

src/kernel-install/50-depmod.install
src/kernel-install/90-loaderentry.install
src/kernel-install/kernel-install.in

index b43333762bc34b1c516f86d67eac7c1e20d90301..d4b991cfd62626cb7b16ac5f31e81b095a571753 100755 (executable)
@@ -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:?}"
 
index 96e24194c40e0e2f0da1133c3f2b3da53ccd25a9..b34bbd83cdf54431e4e781ca6a684192b34cccfa 100755 (executable)
@@ -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:?}"
index 30b28f4658b1d8ba87a76d3b33d752a0234f1ddc..a597e411336b89f717cade74ad647f389575a3f4 100755 (executable)
@@ -20,6 +20,8 @@
 
 skip_remaining=77
 
+set -e
+
 usage()
 {
     echo "Usage:"