From 9c43586b3c213fda5ae85c1505a4cc4c42258bda Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 18 Mar 2016 14:59:18 +0100 Subject: [PATCH 09/15] preinit: don't run depmod if the system has no modules support If the system has no support for modules, there will be no modules in /boot and depmod will emit errors. Don't run it. --- .preinit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.preinit b/.preinit index 354ddc4..7db17c8 100644 --- a/.preinit +++ b/.preinit @@ -72,7 +72,8 @@ ch 0600 0 0 10 200 /dev/net/tun ex /sbin/fix-date -ex /sbin/depmod -a +st /proc/modules +&ex /sbin/depmod -a ex /bin/sh -c "/bin/mount -n -o remount,ro /boot/ 2>/dev/null" # pressing the front switch during boot restores factory defaults -- 1.7.12.1