[Pkg-uml-devel] The way rootstrap is dealing with uml routing
issues.
shaulka at 012.net.il
shaulka at 012.net.il
Thu Nov 23 11:37:33 CET 2006
At http://lists.alioth.debian.org/pipermail/pkg-uml-devel/2006-November/000358.html
Mattia Dongili reffered to the routing issues in uml.
My summary for that discussion is:
--- /usr/lib/rootstrap/modules/network 2006-11-23 03:35:10.000000000 +0200
+++ modules/network 2006-11-23 03:40:03.000000000 +0200
@@ -12,6 +12,9 @@
ifconfig $interface $uml netmask $netmask
if [ -n "$gateway" ]; then
+ if test x"$netmask" == "x255.255.255.255.255"; then
+ route add -host $gateway dev $interface
+ fi
route add default gw $gateway
fi
fi
I would like to point out that /usr/lib/rootstrap/modules/debian
also seems to reffer to the route issues of uml. It looks to me
that it, too, is adding a 2nd route command:
$ grep route /usr/lib/rootstrap/modules/debian
up route add -net 0.0.0.0 dev $interface
echo "up route add -net 0.0.0.0 gw $gateway" >> $TARGET/etc/network/interfaces
I am not a networking expert. Still, the patch and modules/debian lines
looks to me as if they acheive the same goal.
More information about the Pkg-uml-devel
mailing list