diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-20 17:03:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-20 19:57:50 +0200 |
commit | 34d9ecbc0740216026bb3c49d958183842a9f095 (patch) | |
tree | 64b693ef2b76f740675efd17f4f08a0fc257e481 /setup-alpine.in | |
parent | 70dab89b61e1e6ad9ed8b96d3c948385d1b07f53 (diff) | |
download | alpine-conf-34d9ecbc0740216026bb3c49d958183842a9f095.zip |
setup-xen-dom0: setup script to set up basic xen dom0
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} |