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

Bug#661369: Re: Bug#661369: live-build: cannot change hostname




Thx Ben, but

lb config --hostname "my_name"

doesn't work, perhaps due to the syslinux and I'm using syslinux as a boot loader.

Any other idea to solve this problem?



On Feb 26, 2012, Ben Armstrong <synrg@sanctuary.nslug.ns.ca> wrote:

On 26/02/12 02:10 PM, Piotr wrote:
> I cannot change the hostname.
> I have tried to change manually in config/binary:

First, please note that changing config/binary (or any of the top-level
files generated by 'lb config' in the 'config' directory) is not
recommended 'best practice' for configuration. You should be using 'lb
config --hostname' for that instead.

Second, grepping the live-build source tree I notice that LB_HOSTNAME is
referenced in lb_binary_yaboot, lb_binary_silo, lb_binary_grub2 and
lb_binary_grub, but is conspicuously absent from lb_binary_syslinux, so
it appears this option is not applicable for syslinux images. I'm not
even sure why it is still used for the other bootloaders, as I didn't
dig any deeper.

Finally, see the live-config man page, 'hostname' option. I believe that
is what you were looking for.

If lb_config --hostname option no longer applies to syslinux, the man
page should at least be updated to warn about this (and ideally refer to
live-config 'hostname' instead). If it is a deprecated option and will
be removed for the other bootloaders, it should mention that ...
Honestly, I don't know what Daniel's plans are for it, as we haven't
spoken about it.

Ben

Reply to: