diff options
author | Simon Rettberg | 2024-07-11 10:26:10 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-07-11 10:26:10 +0200 |
commit | fca374793b023eb5881bffe8816eb7e70b91f0e2 (patch) | |
tree | 208ffa4c6f536d7950e2b8a6abe050a5ab119144 /build-initramfs.sh | |
parent | [slx-network] Disable stage4 dhcp by default (diff) | |
download | systemd-init-fca374793b023eb5881bffe8816eb7e70b91f0e2.tar.gz systemd-init-fca374793b023eb5881bffe8816eb7e70b91f0e2.tar.xz systemd-init-fca374793b023eb5881bffe8816eb7e70b91f0e2.zip |
Update dracut patch; make failing patches fatal
- Check for /.console_lock before trying to drop another shell
- Silence systemd console output before spawning shell
Diffstat (limited to 'build-initramfs.sh')
-rwxr-xr-x | build-initramfs.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build-initramfs.sh b/build-initramfs.sh index 188369e4..2bea05c4 100755 --- a/build-initramfs.sh +++ b/build-initramfs.sh @@ -127,7 +127,8 @@ bootstrap() { for patch in "${_repo_dir}/patches/${_ref[path]##*/}/"*.patch; do [ -s "$patch" ] || continue if ! patch -p1 < "$patch"; then - echo "Applying '$patch' failed, expecting errors. Continuing..." + echo "ERROR: Applying '$patch' failed" + exit 1 fi done popd || exit 1 |