From bb1a93a3854a4c5b25833c9e163f9a08c13df966 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 10 Jul 2013 09:28:47 +0000 Subject: [PATCH] check the capabilities(CAP_NET_ADMIN) of /usr/bin/qemu-system-x86_64 on debian/ubuntu git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16932 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/scripts/xHRM | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/share/xcat/scripts/xHRM b/xCAT-server/share/xcat/scripts/xHRM index de1817db7..470893c00 100755 --- a/xCAT-server/share/xcat/scripts/xHRM +++ b/xCAT-server/share/xcat/scripts/xHRM @@ -237,6 +237,10 @@ elif [ "bridgeprereq" = "$1" ]; then debianpreconf nwdir="/etc/network/interfaces.d" isDebian=1 + getcap /usr/bin/qemu-system-x86_64 | grep cap_net_admin + if [ $? ne 0 ];then + setcap cap_net_admin=ei /usr/bin/qemu-system-x86_64 + fi else nwdir="/etc/sysconfig/network-scripts" fi