ignore non-zero exist codes of `modprobe loop` and `modprobe dm-mod`
authorPatrick Schleizer <adrelanos@whonix.org>
Sat, 18 Nov 2023 04:51:49 +0000 (23:51 -0500)
committerPatrick Schleizer <adrelanos@whonix.org>
Thu, 7 Dec 2023 18:52:48 +0000 (13:52 -0500)
to work around an issue by github actions
drop `-q` from modprobe for better debug output

grml-debootstrap

index bac28b0..3c6ef2f 100755 (executable)
@@ -1451,7 +1451,7 @@ prepare_vm() {
   fi
 
   # make sure loop module is present and a usable loop device exists
-  modprobe -q loop
+  modprobe loop || true
   if ! losetup -f >/dev/null 2>&1; then
     eerror "Error finding usable loop device"
     bailout 1
@@ -1459,7 +1459,7 @@ prepare_vm() {
 
   # if dm-mod isn't available then kpartx will fail with
   # "Is device-mapper driver missing from kernel? [...]"
-  modprobe -q dm-mod
+  modprobe dm-mod || true
   if ! grep -q 'device-mapper' /proc/misc >/dev/null 2>&1 ; then
     eerror "Device-mapper support missing in kernel."
     bailout 1