From 348ba69de1b0acfe24ce2a5b3e5f0ef6ef3fbf3a Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 17 Sep 2013 22:01:54 +0200 Subject: [PATCH] Abort udev upgrade if devtmpfs support is missing Add preinst check to abort udev upgrade if the currently running kernel lacks devtmpfs support. Since udev 176, devtmpfs is mandatory as udev no longer creates any device nodes itself. This only affects self-compiled kernels which now need CONFIG_DEVTMPFS=y. Closes: #722580 --- debian/udev.preinst | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/debian/udev.preinst b/debian/udev.preinst index 14c88eedb..ed6182bac 100644 --- a/debian/udev.preinst +++ b/debian/udev.preinst @@ -117,6 +117,12 @@ check_kernel_features() { fi + local missing_devtmpfs=0 + if ! grep -q '[[:space:]]devtmpfs$' /proc/filesystems; then + missing_devtmpfs=1 + abort_install=1 + fi + local sysfs_deprecated=0 if [ -d /sys/class/mem/null -a ! -L /sys/class/mem/null ]; then sysfs_deprecated=1 @@ -135,6 +141,15 @@ the running kernel: END fi + if [ "$missing_devtmpfs" -eq 1 ]; then + cat <