Skip to content

Commit d65f044

Browse files
bwswyadvr
authored andcommitted
CLOUDSTACK-10138: Load br_netfilter in security_group management script (#2321)
Improved debian installation script to find either rb_netfilter module exists in the system and should be loaded. The implementation does check and fix during installation process (Ubuntu 14.04/16.04)
1 parent 8832758 commit d65f044

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

debian/cloudstack-agent.postinst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ case "$1" in
3535
done
3636
fi
3737

38+
BR_NETFILTER_MODULE=br_netfilter
39+
MODULES_FILE=/etc/modules
40+
if /sbin/modinfo $BR_NETFILTER_MODULE >/dev/null 2>&1; then
41+
/sbin/modprobe $BR_NETFILTER_MODULE
42+
if ! grep $BR_NETFILTER_MODULE $MODULES_FILE >/dev/null 2>&1; then
43+
echo "$BR_NETFILTER_MODULE" >> $MODULES_FILE
44+
fi
45+
fi
46+
3847
# Running cloudstack-agent-upgrade to update bridge name for upgrade from CloudStack 4.0.x (and before) to CloudStack 4.1 (and later)
3948
/usr/bin/cloudstack-agent-upgrade
4049
if [ ! -d "/etc/libvirt/hooks" ] ; then

0 commit comments

Comments
 (0)