HOSTNAME in nfsroot boot is FQDN
Justin Cattle
j at ocado.com
Thu Jun 8 12:14:15 CEST 2017
Actually, I just found that HOSTNAME is not in /tmp/fai/boot.log
That is strange, as I can see it's configured on the dhcp server, and the
dhcp server hasn't changed.
The only change is a FAI 5 nfsroot.
Cheers,
Just
On 8 June 2017 at 10:40, Justin Cattle <j at ocado.com> wrote:
> Hi,
>
>
> I've been testing migrating to fai 5 from 4.
> I'm currently using fai-5.3.6, on Ubuntu xenial, but with a Debian stretch
> nfsroot [ due to lack of dracut support in ubuntu ].
>
> When I build a host, the boot all works ok and the build process starts
> fine.
> However, the hostname of the instance is somehow getting set to the FQDN.
>
> It sounds like a small problem, but has a knock on effect on some of our
> custom class assignment scripts.
>
> I know that dhcp is sending the correct host-name.
>
>
> It looks like FAI set's the HOSTNAME variable from this script passed from
> dhclient:
>
> root 1531 0.0 0.0 21484 1076 ? Ss 10:21 0:00 dhclient
> -lf /dev/null -cf /usr/share/fai/dhclient-fai.conf -sf
> /usr/share/fai/dhclient-fai-script eth0
>
>
> Am I right in thinking that?
>
> Any ideas on how I can fix or debug this so HOSTNAME is set to the
> host-name requested from DHCP?
>
> It's not even obvious to me where the dhcp config for fai that calls that
> script is set.
>
>
> Any help or info is greatly appreciated.
> Thanks!
>
>
>
> Cheers,
> Just
>
--
Notice: This email is confidential and may contain copyright material of
members of the Ocado Group. Opinions and views expressed in this message
may not necessarily reflect the opinions and views of the members of the
Ocado Group.
If you are not the intended recipient, please notify us immediately and
delete all copies of this message. Please note that it is your
responsibility to scan this message for viruses.
Fetch and Sizzle are trading names of Speciality Stores Limited and Fabled
is a trading name of Marie Claire Beauty Limited, both members of the Ocado
Group.
References to the “Ocado Group” are to Ocado Group plc (registered in
England and Wales with number 7098618) and its subsidiary undertakings (as
that expression is defined in the Companies Act 2006) from time to time.
The registered office of Ocado Group plc is Buildings One & Two, Trident
Place, Mosquito Way, Hatfield, Hertfordshire, AL10 9UL.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20170608/2ab9af1f/attachment.html>
More information about the linux-fai
mailing list