aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/xen_domu/base-files
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/base-files
parente0fc8fb6aa2ae71c146e70e5b803ea8638e36e01 (diff)
downloadupstream-a2431086551566a41227ecf4194cd9606b909ac9.tar.gz
upstream-a2431086551566a41227ecf4194cd9606b909ac9.tar.bz2
upstream-a2431086551566a41227ecf4194cd9606b909ac9.zip
add preinit xenfs mount handler
SVN-Revision: 19616
Diffstat (limited to 'target/linux/x86/xen_domu/base-files')
-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