Jeff Schroeder wrote: > On Mon, Apr 20, 2009 at 5:48 AM, Axel Thimm <[email protected]> wrote: > >> Hi, >> >> On Tue, Mar 24, 2009 at 07:08:14PM +0100, Jasper Capel wrote: >> >>> On 03/24/2009 07:01 PM, Michael DeHaan wrote: >>> >>>> Sounds reasonable, I must have missed the patch earlier. Everyone else >>>> think this is ok? >>>> >>>> >>> /me nods >>> >> it's still not patched into cobbler sources, can you please apply it? >> Here is the patch again: >> >> --- snippets/post_install_network_config.org 2009-03-27 >> 21:41:21.000000000 +0200 >> +++ snippets/post_install_network_config 2009-04-20 >> 15:39:07.000000000 +0300 >> @@ -128,6 +128,9 @@ >> #set $netmask = "255.255.255.0" >> #end if >> echo "NETMASK=$netmask" >> $devfile >> +if [ "`ipcalc --network $ip $netmask`" = "`ipcalc --network $gateway >> $netmask`" ]; then >> + echo "GATEWAY=$gateway" >> $devfile >> +fi >> #else >> ## Leave the interface unconfigured >> ## we don't have enough info for static configuration >> > > Not sure if this matter, but ipcalc is not default installed on > non-fedora/*hat systems such as Debian or Ubuntu. You might want to > add this as a dependency to the docs somewhere? > > The network snippet doesn't even attempt to address those operating systems, so I don't think that's a problem. They will need a substantial overhaul to work there, I'm sure.
--Michael _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
