summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--linux-image.pkg/preinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-image.pkg/preinst b/linux-image.pkg/preinst
index 2275fb7..881ea9b 100644
--- a/linux-image.pkg/preinst
+++ b/linux-image.pkg/preinst
@@ -1,5 +1,11 @@
#!/bin/sh
+# Prevent the following ENOENT warning message on new installations:
+# run-parts: /etc/kernel/preinst.d: No such file or directory
+if ! [ -d /etc/kernel/preinst.d ]; then
+ exit 0
+fi
+
first=true
for arg in "${@}"; do
if ${first}; then