mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
By preloading some modules we fix two things. 1. Some sysctl settings like ip_conntrack_max are not set during boot because the module is not loaded at that time. 2. Passive ftp does not work through iptables without these modules.
Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
parent
b666a1f3a5
commit
bfccf439cf
@ -195,6 +195,16 @@ fix_vhdutil() {
|
||||
chmod a+x /bin/vhd-util
|
||||
}
|
||||
|
||||
# Preload these module otherwise the sysctl settings will not be set, and pasive ftp will not work.
|
||||
fix_modules() {
|
||||
cat >> /etc/modules << EOF
|
||||
nf_conntrack_ipv4
|
||||
nf_conntrack
|
||||
nf_conntrack_ftp
|
||||
nf_nat_ftp
|
||||
EOF
|
||||
}
|
||||
|
||||
do_fixes() {
|
||||
fix_nameserver
|
||||
fix_inittab
|
||||
@ -203,6 +213,7 @@ do_fixes() {
|
||||
fix_locale
|
||||
fix_conntrackd
|
||||
fix_vhdutil
|
||||
fix_modules
|
||||
}
|
||||
|
||||
configure_apache2() {
|
||||
|
||||
@ -185,6 +185,16 @@ fix_vhdutil() {
|
||||
chmod a+x /bin/vhd-util
|
||||
}
|
||||
|
||||
# Preload these module otherwise the sysctl settings will not be set, and pasive ftp will not work.
|
||||
fix_modules() {
|
||||
cat >> /etc/modules << EOF
|
||||
nf_conntrack_ipv4
|
||||
nf_conntrack
|
||||
nf_conntrack_ftp
|
||||
nf_nat_ftp
|
||||
EOF
|
||||
}
|
||||
|
||||
do_fixes() {
|
||||
fix_nameserver
|
||||
fix_inittab
|
||||
@ -193,6 +203,7 @@ do_fixes() {
|
||||
fix_locale
|
||||
fix_conntrackd
|
||||
fix_vhdutil
|
||||
fix_modules
|
||||
}
|
||||
|
||||
configure_apache2() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user