Am Mit, den 31.12.2003 schrieb Joey Hess um 01:06:
> Gaudenz Steinlin wrote:
> > I don't know where the dot comes from neither... 
> > I'm wondering where /etc/hostname comes from at all...
> > 
> > The wired /etc/mailname comes from my totaly wrong fix for the mailname
> > issue (prebaseconfig copied /etc/hosts to /target/etc/mailname).
> > The patch I attached should fix this in theory, but as I only have a
> > modem connection atm I'm unable to test it. I will try to do at least
> > half of an install.
> 
> I don't feel this is the right fix. /etc/hostname does not have the same
> format as /etc/hosts either! 
I don't understand this comment. /etc/hostname is copied to
/target/etc/hostname. This does not assume that /etc/hostname and
/etc/hosts have the same format.
> Instead, why not just make netcfg
> echo the hostname to /proc/sys/kernel/hostname.
This could additionaly be done, but I don't think it is needed. The
installer just works fine without it. This does not solve the issue that
the hostname and mailname are not correct after reboot.

>  I belive that exim4's
> postinst will do the right thing if the hostname is actually set. We may
> also need to write a (correct) value to /etc/hostname, but I'm not sure.
That's what my patch intended to do. The only thing I'm not sure about
and cannot test right now is if /etc/hostname exists after netcfg in the
installer ramdisk.

Gaudenz


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to