diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-13 15:03:24 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-24 13:30:39 +0100 |
commit | 296772f9392bcb3cdc6b02011b4c311fec380cb1 (patch) | |
tree | 0f0985f54718240ec214b7137a73bcccbbefb32a /target/linux/x86/generic/base-files/lib/preinit/45_mount_xenfs | |
parent | b850218584c0a7bc573579b0d21d243e7ae1bf03 (diff) | |
download | upstream-296772f9392bcb3cdc6b02011b4c311fec380cb1.tar.gz upstream-296772f9392bcb3cdc6b02011b4c311fec380cb1.tar.bz2 upstream-296772f9392bcb3cdc6b02011b4c311fec380cb1.zip |
x86/generic: add xen DomU support
Copy the relevant config options from the xen_domu subtarget
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/x86/generic/base-files/lib/preinit/45_mount_xenfs')
-rw-r--r-- | target/linux/x86/generic/base-files/lib/preinit/45_mount_xenfs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/x86/generic/base-files/lib/preinit/45_mount_xenfs b/target/linux/x86/generic/base-files/lib/preinit/45_mount_xenfs new file mode 100644 index 0000000000..ac484f6210 --- /dev/null +++ b/target/linux/x86/generic/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 |