diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-02-12 22:37:17 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-02-12 22:37:17 +0000 |
commit | a2431086551566a41227ecf4194cd9606b909ac9 (patch) | |
tree | 802869d5d43b588c6f64266286a6e1bb45aba940 /target | |
parent | e0fc8fb6aa2ae71c146e70e5b803ea8638e36e01 (diff) | |
download | upstream-a2431086551566a41227ecf4194cd9606b909ac9.tar.gz upstream-a2431086551566a41227ecf4194cd9606b909ac9.tar.bz2 upstream-a2431086551566a41227ecf4194cd9606b909ac9.zip |
add preinit xenfs mount handler
SVN-Revision: 19616
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs | 11 |
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 |