Skip to content

Commit

Permalink
chore: Extend pipefails
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jan 13, 2025
1 parent 022a2d0 commit dcb1fc5
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build_files/build-initramfs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -eoux pipefail

if [[ "${KERNEL_FLAVOR}" == "surface" ]]; then
KERNEL_SUFFIX="surface"
Expand Down
2 changes: 1 addition & 1 deletion build_files/cleanup
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -eoux pipefail

dnf5 clean all
rm -rf /tmp/* || true
Expand Down
2 changes: 1 addition & 1 deletion build_files/finalize
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -eoux pipefail

dnf5 clean all
rm -rf /tmp/* || true
Expand Down
2 changes: 1 addition & 1 deletion build_files/image-info
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -eoux pipefail

IMAGE_PRETTY_NAME="Bazzite"
IMAGE_LIKE="fedora"
Expand Down
2 changes: 1 addition & 1 deletion build_files/install-akmods
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -eoux pipefail

dnf5 -y install \
/tmp/akmods-rpms/kmods/*kvmfr*.rpm \
Expand Down
2 changes: 1 addition & 1 deletion build_files/install-firmware
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -eoux pipefail

mkdir -p /tmp/linux-firmware-neptune
curl -Lo /tmp/linux-firmware-neptune/cs35l41-dsp1-spk-cali.bin https://gitlab.com/evlaV/linux-firmware-neptune/-/raw/"${JUPITER_FIRMWARE_VERSION}"/cs35l41-dsp1-spk-cali.bin
Expand Down
5 changes: 3 additions & 2 deletions build_files/install-kernel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -eoux pipefail

for pkg in kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra
do
Expand All @@ -10,4 +10,5 @@ done
dnf5 -y install \
/tmp/kernel-rpms/kernel-[0-9]*.rpm \
/tmp/kernel-rpms/kernel-core-*.rpm \
/tmp/kernel-rpms/kernel-modules-*.rpm
/tmp/kernel-rpms/kernel-modules-*.rpm \
/tmp/kernel-rpms/kernel-uki-virt-*.rpm
2 changes: 1 addition & 1 deletion build_files/unwrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -eoux pipefail

# there is no 'rpm-ostree cliwrap uninstall-from-root', but this is close enough. See:
# https://github.com/coreos/rpm-ostree/blob/6d2548ddb2bfa8f4e9bafe5c6e717cf9531d8001/rust/src/cliwrap.rs#L25-L32
Expand Down

0 comments on commit dcb1fc5

Please sign in to comment.