projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/64: add xen DomU support
[openwrt/openwrt.git]
/
target
/
linux
/
x86
/
64
/
base-files
/
lib
/
preinit
/
45_mount_xenfs
diff --git a/target/linux/x86/64/base-files/lib/preinit/45_mount_xenfs
b/target/linux/x86/64/base-files/lib/preinit/45_mount_xenfs
new file mode 100644
(file)
index 0000000..
ac484f6
--- /dev/null
+++ b/
target/linux/x86/64/base-files/lib/preinit/45_mount_xenfs
@@ -0,0
+1,9
@@
+#!/bin/sh
+# Copyright (C) 2010 OpenWrt.org
+
+do_mount_xenfs() {
+ grep -q xenfs /proc/filesystems && \
+ mount -o noatime -t xenfs none /proc/xen
+}
+
+boot_hook_add preinit_mount_root do_mount_xenfs