From: Patrick Schleizer Date: Sat, 18 Nov 2023 04:51:49 +0000 (-0500) Subject: ignore non-zero exist codes of `modprobe loop` and `modprobe dm-mod` X-Git-Tag: v0.106~7^2~6 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=08f75f250d36f3dcebbb4ca65ecf5ff595333e2a;hp=cc96e883fa7ca0870b2428cda94aa0054dc02642;p=grml-debootstrap.git ignore non-zero exist codes of `modprobe loop` and `modprobe dm-mod` to work around an issue by github actions drop `-q` from modprobe for better debug output --- diff --git a/grml-debootstrap b/grml-debootstrap index bac28b0..3c6ef2f 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -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