mkarchiso does not stop when a dkms module could not be build
Hello,
I am one of those archzfs guys having some bad time right now ;-).
While running my build script, I am building the zfs-dkms. Sad thing for me, mkarchiso does not stop when a dkms build fails.
I can see the following lines in my build log.
(11/18) Updating module dependencies...
(12/18) Install DKMS modules
==> dkms install --no-depmod zfs/2.1.9 -k 6.2.8-arch1-1
Error! Bad return status for module build on kernel: 6.2.8-arch1-1 (x86_64)
Consult /var/lib/dkms/zfs/2.1.9/build/make.log for more information.
==> WARNING: `dkms install --no-depmod zfs/2.1.9 -k 6.2.8-arch1-1' exited 10
(13/18) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'archiso'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
I must admit, I don't know if mkarchiso is the right process to blame. But it is the only process I am calling at the end. And the only process I am evaluating the exit code on the next line.
Expectation
mkarchiso
is stopping or returning an exit code > 0 if a dkms module could not be build (build process results with an exit code greater 0)
Reality
mkarchiso
is echoing the error but does not stop