Re: Changed gentoo-add_ip.sh to work with baselayout-vserver-1.11.14-r3 [message #1986 is a reply to message #1985] |
Sat, 11 March 2006 14:33 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
steffen.zieger
Messages: 43 Registered: February 2006 Location: Germany, Stuttgart
|
Member |
|
|
So, updating to baselayout-1.12 will 'fix' the error with dev venet0, but there is no backwards compatibility.
For example, vzctl will be updated to fix this error, it's not working with baselayout-1.12. If vzctl is not fixing this error, it's not working with baselayout-1.11.
What about telling the baselayout-vserver people on gentoo, trying to fix this bug with a check, if there is 'dev venet0' added in the routes-line and printing out a message to the user?
So it is the user, who is responsible for fixing it in /etc/conf.d/net (removing dev venet0 in case of baselayout-1.12).
Another way of fixing this is checking via emerge which baselayout-version is installed before adding the ip. I think it should be possible to check via vzctl exec VPSID 'emerge -s baselayout-vserver |grep installed |cut -d: -f 2|cut -d" " -f 2' and doing the needed things in gentoo-add_ip.sh.
Maybe there is an easier way of doing the same, I'm trying to get it to work.
HTH,
Steffen
|
|
|