diff options
Diffstat (limited to 'setup-alpine.in')
-rwxr-xr-x | setup-alpine.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/setup-alpine.in b/setup-alpine.in index 8406a9c..eb1c6a8 100755 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -48,6 +48,12 @@ while getopts "af:c:hq" opt ; do done shift `expr $OPTIND - 1` +# mount xenfs so we can detect xen dom0 +if [ "$(rc --sys)" = "XENU" ] && ! grep -q '^xenfs' /proc/mounts; then + modprobe xenfs + mount -t xenfs xenfs /proc/xen +fi + if [ "$USEANSWERFILE" != "" ]; then if [ -e "$USEANSWERFILE" ]; then . "$USEANSWERFILE" @@ -178,6 +184,10 @@ if ! is_qemu; then $PREFIX/sbin/setup-ntp ${NTPOPTS} fi +if is_xen_dom0; then + setup-xen-dom0 +fi + DEFAULT_DISK=none \ $PREFIX/sbin/setup-disk -q ${DISKOPTS} |