Buildroot: setting hostname in /etc/inittab

Nathanael D. Noblet nathanael at gnat.ca
Tue Nov 29 16:58:45 UTC 2005


On Mon, 2005-11-28 at 14:24 -0800, Joseph M Dupre (AVAB Inc.) wrote:
> In Buildroot, If coreutils is installed hostname is not correctly 
> set. This appears to be caused by coreutils installing it's own 
> version of hostname (overwriting the link to use the busybox version 
> of hostname).
> 
> Then this line in /etc/inittab fails because coreutils version of 
> hostname does not support the -F option:
> 
>      null::sysinit:/bin/hostname -F /etc/hostname
> 
> This can be fixed by changing inittab to read:
> 
>      null::sysinit:/bin/busybox hostname -F /etc/hostname
> 
> But what if busybox is not installed?  Would it be "better" to move 
> the setting of hostname to an init.d script?

I hit this bug as well, though not sure the correct fix for it. If you
have a proper fix, post a bug report & patch at http://bugs.uclibc.org/

I'll test it out as well to provide my 2c worth.
-- 
Nathanael D. Noblet
Gnat Solutions
http://www.gnat.ca/
T 250.385.4613
C 250.893.4613




More information about the uClibc mailing list