summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2009-08-08 13:52:23 +0200
committermaximilian attems <maks@debian.org>2009-08-08 13:52:23 +0200
commit39252ef3dcec3041db9e4b60b7f13ba75115e764 (patch)
tree08c09761689b00da15aa93b2b2d8ce4c2dcd89f4
parente0881b38724dffac0dcce1aad447c23ef571a374 (diff)
downloadinitramfs-tools-39252ef3dcec3041db9e4b60b7f13ba75115e764.tar.gz
initramfs-tools-39252ef3dcec3041db9e4b60b7f13ba75115e764.zip
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
-rw-r--r--hook-functions2
1 files changed, 1 insertions, 1 deletions
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