aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2012-10-18 09:35:00 +0100
committerOlaf Hering <olaf@aepfle.de>2012-10-18 09:35:00 +0100
commit301febc0fe0fe873b2cdac419eb4053b6c5e6019 (patch)
tree40b8fb2abab472f6798bbffb05a420081c2e4290 /install.sh
parent87a05a45860d93455e4cf5672c2b8566c090fb44 (diff)
downloadxen-301febc0fe0fe873b2cdac419eb4053b6c5e6019.tar.gz
xen-301febc0fe0fe873b2cdac419eb4053b6c5e6019.tar.bz2
xen-301febc0fe0fe873b2cdac419eb4053b6c5e6019.zip
hotplug/Linux: remove hotplug support, rely on udev instead
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>
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/install.sh b/install.sh
index db4604c5a4..272123a0d7 100755
--- a/install.sh
+++ b/install.sh
@@ -27,20 +27,6 @@ tmp="`mktemp -d`"
echo "Installing Xen from '$src' to '$dst'..."
(cd $src; tar -cf - * ) | tar -C "$tmp" -xf -
-[ -x "$(which udevinfo)" ] && \
- UDEV_VERSION=$(udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/')
-
-[ -z "$UDEV_VERSION" -a -x /sbin/udevadm ] && \
- UDEV_VERSION=$(/sbin/udevadm info -V | awk '{print $NF}')
-
-if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
- echo " - installing for udev-based system"
- rm -rf "$tmp/etc/hotplug"
-else
- echo " - installing for hotplug-based system"
- rm -rf "$tmp/etc/udev"
-fi
-
echo " - modifying permissions"
chmod -R a+rX "$tmp"