projects
/
invirt/packages/invirt-autoinstaller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autoinstaller: poke policy-rc.d while using aptitude so we don't try to start daemons
[invirt/packages/invirt-autoinstaller.git]
/
common
/
usr
/
lib
/
xen-tools
/
debian.d
/
98-fix-eth-checksums
diff --git
a/common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums
b/common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums
index
94d888e
..
dcd4129
100755
(executable)
--- a/
common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums
+++ b/
common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums
@@
-19,7
+19,10
@@
logMessage Script $0 starting
# To avoid UDP checksum problems.
installDebianPackage ${prefix} ethtool
# To avoid UDP checksum problems.
installDebianPackage ${prefix} ethtool
-sed -i'' -e 's/\(\s*\)# post-up/\1post-up/' ${prefix}/etc/network/interfaces
+if ! sed -i -e 's/^\(\s*\)#\s*post-up\s\+ethtool/\1post-up ethtool -K eth0 tso off\n\0/' ${prefix}/etc/network/interfaces; then
+ echo "ERROR: unable to disable network segmentation offloading"
+ exit 1
+fi
#
# Log our finish
#
# Log our finish