bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fwd: Questions on isc-dhcp]


From: Svante Signell
Subject: Re: [Fwd: Questions on isc-dhcp]
Date: Tue, 01 Mar 2011 20:50:33 +0100

On Tue, 2011-03-01 at 09:03 +0100, Samuel Thibault wrote:
> Svante Signell, le Tue 01 Mar 2011 08:50:39 +0100, a écrit :
> > I have now working scripts dhclient-script.hurd and 
> > dhclient-script.hurd.udeb
> 
> Ok, good, please post them for review.

Attached below, with debug output by adding set -x to the scripts. 

One thing remains to do: The file
/etc/dhcp/dhclient-exit-hooks.d/rfc3442-classless-routes should not be
run on GNU/Hurd (or should be adapted to not use /sbin/route). Now it is
called but does nothing.

> > Both udeb for Linux and kfreeBSD have strange constructs I've not been
> > able to find out about, e.g.
> > 
> > new_mask="/$(ptom $new_subnet_mask)"
> > 
> > Is the ptom command something in the Debian installer, or elsewhere.
> 
> It's from the netcfg udeb package, yes, so you can use it.

It does not make sense to use construct like 10.0.2.15/24, created by
using ptom (softlink to netcfg) since inetutils does not support this
synstax. (I downloaded the udebs netcfg_1.60,
libdebconfclient0-udeb_0.154 and libdebian-installer4_0.76 to try it
out). Likewise, kfreebsd does not use this construct either, even if the
code is still there in the udeb.

Of course the scripts should be tested in other environments than under
qemu like I did. And, the udebs within the Debian installer of course.

> > Another issue is about inetutils-ifconfig: According to the help/manpage
> > there should be commands for activating and shutting down the interface,
> > but for Hurd they don't work. 
> > 
> > inetutils-ifconfig -i eth0 --up
> > inetutils-ifconfig: SIOCSIFFLAGS failed: (os/device) invalid IO size
> > 
> > inetutils-ifconfig -i eth0 --down
> 
> I'm not really surprised actually.
> Didn't we have working equivalent in our latest dhcp script?

No idea, I had not installed GNU/Hurd by then. The patch you sent last
year was for dhcp3, things seems to have changed a lot with version 4 of
isc-dhcp.

I've spent enough effort on this for now. I'll send a patch as a bug
report as mentioned earlier. Please test the patches and review the
modified scripts.

Attachment: dhclient-script.hurd
Description: application/shellscript

Attachment: dhclient-script.hurd.udeb
Description: application/shellscript

Attachment: dhclient-script.hurd.log
Description: Text Data

Attachment: dhclient-script.hurd.udeb.log
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]