diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-13 15:03:24 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-16 20:40:13 +0100 |
commit | 1d6879eedd5a766e82e7e4b33d79186a0ca40aa9 (patch) | |
tree | b627ae335b818084fa5abb427ac25623c5efde56 /target/linux/x86/generic/base-files | |
parent | 00144d2730382fcb514ffd4658789eb279702a70 (diff) | |
download | upstream-1d6879eedd5a766e82e7e4b33d79186a0ca40aa9.tar.gz upstream-1d6879eedd5a766e82e7e4b33d79186a0ca40aa9.tar.bz2 upstream-1d6879eedd5a766e82e7e4b33d79186a0ca40aa9.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')
-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 |