]> git.ipfire.org Git - thirdparty/dracut.git/commit - modules.d/40network/dhclient-script.sh
network/dhclient-script: set FQDN
authorIan Dall <ian@beware.dropbear.id.au>
Mon, 23 Jan 2012 09:46:10 +0000 (10:46 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 23 Jan 2012 09:47:38 +0000 (10:47 +0100)
commitda55af4763d6a88da5a0b31cb68cdc0a2adfcd7e
treea991c45b90f030a4be4aa857dc5912b14bd68e6f
parent39339512e2ea0724de9474a8bdac81e5abaf8c97
network/dhclient-script: set FQDN

When booting with nfsroot, dracut doesn't necessarily set the initial
hostname correctly.

According to dhcp-options(5), the name may or may not be qualified with
the local domain. It goes on to say "it is preferable to use the
domain-name option to specify the domain name".

So dhclient-script needs to be able to handle the cases: a) where
host-name is fully qualified and domain name is also specified; b)
where hostname is fully qualified and the domain is not separately
specified; c) where host-name is "short" and domain-name is also
specified; and d) do its best where host-name is short but domain-name
is not specified.

The dhclient-script in initramfs does not handle case "c", apparently
the preferred situation properly, setting hostname to "short".

https://bugzilla.redhat.com/show_bug.cgi?id=756347
modules.d/40network/dhclient-script