[x86] add preinit xenfs mount handler
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 12 Feb 2010 22:37:17 +0000 (22:37 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 12 Feb 2010 22:37:17 +0000 (22:37 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19616 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs [new file with mode: 0644]

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 (file)
index 0000000..7eb8bf7
--- /dev/null
@@ -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
This page took 0.02048 seconds and 4 git commands to generate.