ia64/xen-unstable

view 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
line source
1 #!/bin/sh
3 src='./install'
4 if [ -d ./dist ]; then
5 src='./dist/install'
6 fi
8 if ! [ -d $src ]; then
9 echo "ERROR: Could not find a valid distribution directory."
10 echo " If this is a source-only release, try 'make dist'."
11 exit 1
12 fi
14 dst='/'
15 if [ $# -ne 0 ]; then
16 dst=$1
17 fi
19 if ! [ -d $dst ]; then
20 echo "ERROR: You must specify a valid install directory."
21 echo " The specified directory '$dst' is not valid."
22 exit 1
23 fi
25 tmp="`mktemp -d`"
27 echo "Installing Xen from '$src' to '$dst'..."
28 (cd $src; tar -cf - * ) | tar -C "$tmp" -xf -
30 [ -x "$(which udevinfo)" ] && \
31 UDEV_VERSION=$(udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/')
33 [ -z "$UDEV_VERSION" -a -x /sbin/udevadm ] && UDEV_VERSION=$(/sbin/udevadm -V)
35 if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
36 echo " - installing for udev-based system"
37 rm -rf "$tmp/etc/hotplug"
38 else
39 echo " - installing for hotplug-based system"
40 rm -rf "$tmp/etc/udev"
41 fi
43 echo " - modifying permissions"
44 chmod -R a+rX "$tmp"
46 (cd $tmp; tar -cf - *) | tar --no-same-owner -C "$dst" -xf -
47 rm -rf "$tmp"
49 echo "All done."
51 echo "Checking to see whether prerequisite tools are installed..."
52 cd $src/../check
53 ./chk install
54 echo "All done."
56 exit 0