From 04aad33ab10c7d50f54860a6ca022045369f2732 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 09 Nov 2014 23:34:41 -0500 Subject: linux-image: Prevent ENOENT warning in preinst --- 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 -- cgit v0.9.1