mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Hotplug has been replaced by udev since several years. Remove the hotplug related files and install udev unconditionally. This makes it possible to remove udev from rpm BuildRequires which reduces the buildtime dependency chain. For openSuSE:Factory it was done just now: http://lists.opensuse.org/opensuse-buildservice/2012-10/msg00085.html The patch by itself will have no practical impact unless someone attempts to build and run a Xen dom0 on a really old base system. e.g. circa SLES9/2007 or earlier Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
39 lines
712 B
Bash
Executable File
39 lines
712 B
Bash
Executable File
#!/bin/sh
|
|
|
|
src='./install'
|
|
if [ -d ./dist ]; then
|
|
src='./dist/install'
|
|
fi
|
|
|
|
if ! [ -d $src ]; then
|
|
echo "ERROR: Could not find a valid distribution directory."
|
|
echo " If this is a source-only release, try 'make dist'."
|
|
exit 1
|
|
fi
|
|
|
|
dst='/'
|
|
if [ $# -ne 0 ]; then
|
|
dst=$1
|
|
fi
|
|
|
|
if ! [ -d $dst ]; then
|
|
echo "ERROR: You must specify a valid install directory."
|
|
echo " The specified directory '$dst' is not valid."
|
|
exit 1
|
|
fi
|
|
|
|
tmp="`mktemp -d`"
|
|
|
|
echo "Installing Xen from '$src' to '$dst'..."
|
|
(cd $src; tar -cf - * ) | tar -C "$tmp" -xf -
|
|
|
|
echo " - modifying permissions"
|
|
chmod -R a+rX "$tmp"
|
|
|
|
(cd $tmp; tar -cf - *) | tar --no-same-owner -C "$dst" -xf -
|
|
rm -rf "$tmp"
|
|
|
|
echo "All done."
|
|
|
|
exit 0
|