summaryrefslogtreecommitdiff
path: root/target/linux/x86/xen_domu
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
commita2431086551566a41227ecf4194cd9606b909ac9 (patch)
tree802869d5d43b588c6f64266286a6e1bb45aba940 /target/linux/x86/xen_domu
parente0fc8fb6aa2ae71c146e70e5b803ea8638e36e01 (diff)
downloadmtk-20170518-a2431086551566a41227ecf4194cd9606b909ac9.zip
mtk-20170518-a2431086551566a41227ecf4194cd9606b909ac9.tar.gz
mtk-20170518-a2431086551566a41227ecf4194cd9606b909ac9.tar.bz2
add preinit xenfs mount handler
SVN-Revision: 19616
Diffstat (limited to 'target/linux/x86/xen_domu')
-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 0000000..7eb8bf7
--- /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