From: Jo-Philipp Wich Date: Fri, 12 Feb 2010 22:37:17 +0000 (+0000) Subject: [x86] add preinit xenfs mount handler X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f4c4900c1686b818bdf8b92dc1f5680d002f8009;p=openwrt%2Fsvn-archive%2Farchive.git [x86] add preinit xenfs mount handler SVN-Revision: 19616 --- 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