From 39252ef3dcec3041db9e4b60b7f13ba75115e764 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Sat, 8 Aug 2009 13:52:23 +0200 Subject: hook-functions: Fix mounted /sys check for openvz container. ls -l /sys total 0 drwxr-xr-x 5 root root 0 2009-08-08 11:53 class drwxr-xr-x 2 root root 0 2009-08-08 11:53 devices --- hook-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hook-functions') diff --git a/hook-functions b/hook-functions index bad79e1..387fe60 100644 --- a/hook-functions +++ b/hook-functions @@ -231,7 +231,7 @@ dep_add_modules() local block minor root FSTYPE root_dev_path x # require mounted sysfs - if [ ! -d /sys/kernel/ ]; then + if [ ! -d /sys/devices/ ]; then echo "mkinitramfs: MODULES dep requires mounted sysfs on /sys" exit 1 fi -- cgit v1.2.3