mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-25 05:41:09 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user