Browse Source

postinst: Don't abort from failing module load

There are reasons why loading the aoe kernel module can fail:
* Running inside a chroot
* Loading modules is blocked
* Running on a non-Debian kernel (static or aoe built-in)

So it seems to be the lesser evil to ignore any errors from
systemd-modules-load.
Christoph Biedl 1 year ago
parent
commit
5b4c9958dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      debian/aoetools.postinst

+ 1 - 1
debian/aoetools.postinst

@@ -9,7 +9,7 @@ configure)
     fi
     # load the kernel module (as opposed to letting the init script do it)
     if [ -d /run/systemd/system ] ; then
-        /lib/systemd/systemd-modules-load aoetools.conf
+        /lib/systemd/systemd-modules-load aoetools.conf || true
     fi
     ;;
 abort-upgrade|abort-remove|abort-deconfigure)