ia64/xen-unstable

annotate install.sh @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents edfdeb150f27
children
rev   line source
kaf24@2828 1 #!/bin/sh
kaf24@2828 2
kaf24@2830 3 src='./install'
kaf24@2830 4 if [ -d ./dist ]; then
kaf24@2830 5 src='./dist/install'
kaf24@2830 6 fi
kaf24@2830 7
kaf24@2830 8 if ! [ -d $src ]; then
kaf24@2830 9 echo "ERROR: Could not find a valid distribution directory."
kaf24@2830 10 echo " If this is a source-only release, try 'make dist'."
kaf24@2828 11 exit 1
kaf24@2828 12 fi
kaf24@2828 13
kaf24@2830 14 dst='/'
kaf24@2828 15 if [ $# -ne 0 ]; then
kaf24@2830 16 dst=$1
kaf24@2828 17 fi
kaf24@2828 18
kaf24@2830 19 if ! [ -d $dst ]; then
kaf24@2828 20 echo "ERROR: You must specify a valid install directory."
kaf24@2830 21 echo " The specified directory '$dst' is not valid."
kaf24@2828 22 exit 1
kaf24@2828 23 fi
kaf24@2828 24
kaf24@9102 25 tmp="`mktemp -d`"
kaf24@9102 26
kaf24@2830 27 echo "Installing Xen from '$src' to '$dst'..."
kaf24@9102 28 (cd $src; tar -cf - * ) | tar -C "$tmp" -xf -
kaf24@2828 29
emellor@7963 30 [ -x "$(which udevinfo)" ] && \
emellor@8056 31 UDEV_VERSION=$(udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/')
emellor@7963 32
keir@19835 33 [ -z "$UDEV_VERSION" -a -x /sbin/udevadm ] && UDEV_VERSION=$(/sbin/udevadm -V)
keir@19835 34
emellor@7963 35 if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
kaf24@9102 36 echo " - installing for udev-based system"
kaf24@9102 37 rm -rf "$tmp/etc/hotplug"
kaf24@7264 38 else
kaf24@9102 39 echo " - installing for hotplug-based system"
kaf24@9102 40 rm -rf "$tmp/etc/udev"
kaf24@7264 41 fi
kaf24@7264 42
kaf24@9102 43 echo " - modifying permissions"
kaf24@9102 44 chmod -R a+rX "$tmp"
kaf24@9102 45
kaf24@9102 46 (cd $tmp; tar -cf - *) | tar --no-same-owner -C "$dst" -xf -
kaf24@9102 47 rm -rf "$tmp"
kaf24@9102 48
kaf24@9102 49 echo "All done."
kaf24@9102 50
iap10@2895 51 echo "Checking to see whether prerequisite tools are installed..."
iap10@2895 52 cd $src/../check
iap10@2895 53 ./chk install
iap10@2895 54 echo "All done."
iap10@2895 55
kaf24@2828 56 exit 0