aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-02-12 22:37:17 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-02-12 22:37:17 +0000
commit057781a8e5889ac59499d24aea1cddfe5132a9b1 (patch)
tree388987fbd04a2885c71c9c3346f13f77964e0c1a
parente53a72a759e03c4b015cd5c9bdb363618c09bb27 (diff)
downloadupstream-057781a8e5889ac59499d24aea1cddfe5132a9b1.tar.gz
upstream-057781a8e5889ac59499d24aea1cddfe5132a9b1.tar.bz2
upstream-057781a8e5889ac59499d24aea1cddfe5132a9b1.zip
[x86] add preinit xenfs mount handler
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19616 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs b/target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs
new file mode 100644
index 0000000000..7eb8bf7958
--- /dev/null
+++ b/target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Copyright (C) 2010 OpenWrt.org
+
+do_mount_xenfs() {
+ [ -f /etc/modules.d/??-xenfs ] && {
+ insmod $(cat /etc/modules.d/??-xenfs)
+ mount none /proc/xen -t xenfs
+ }
+}
+
+boot_hook_add preinit_mount_root do_mount_xenfs