Correct for the network checksumming problem in
authorEvan Broder <broder@mit.edu>
Mon, 26 Jan 2009 12:42:42 +0000 (07:42 -0500)
committerEvan Broder <broder@mit.edu>
Mon, 26 Jan 2009 12:42:42 +0000 (07:42 -0500)
/etc/network/interfaces instead of /etc/rc.local

This will cause the change to persist across downing and upping the
interface. It also takes advantage of the hook that xen-create-image
already puts in place, instead of creating our own.

svn path=/trunk/packages/invirt-autoinstaller/; revision=2006

common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums
debian/changelog

index e4c2672..33d18ee 100755 (executable)
@@ -19,7 +19,7 @@ logMessage Script $0 starting
 # To avoid UDP checksum problems.
 installDebianPackage ${prefix} ethtool
 
 # To avoid UDP checksum problems.
 installDebianPackage ${prefix} ethtool
 
-sed -i'' -e 's/^exit 0$/ethtool -K eth0 tx off\n\0/' ${prefix}/etc/rc.local
+sed -i'' -e 's/(\s*)# post-up/$1post-up/' ${prefix}/etc/network/interfaces
 
 #
 # Log our finish
 
 #
 # Log our finish
index 2b79374..098f5a9 100644 (file)
@@ -1,3 +1,10 @@
+invirt-autoinstaller (0.0.6) unstable; urgency=low
+
+  * Correct for the checksumming issue in /etc/network/interfaces instead
+    of /etc/rc.local
+
+ -- Evan Broder <broder@mit.edu>  Mon, 26 Jan 2009 07:40:30 -0500
+
 invirt-autoinstaller (0.0.5) unstable; urgency=low
 
   * Install Debian and Ubuntu compatible kernels without checking first
 invirt-autoinstaller (0.0.5) unstable; urgency=low
 
   * Install Debian and Ubuntu compatible kernels without checking first