Hello,

Thank you for your reply. To your first option I do not have the
cloud-init package installed. I don't know if this matters but
hostnamectl reports that the virtualization is openvz. To your second
option I don't have a dhcpcd.conf file, though I did look for anything
dhcp on the system, here are those packages:

ii  isc-dhcp-client                 4.4.3-P1-2
    amd64        DHCP client for automatically obtaining an IP address
ii  isc-dhcp-common                 4.4.3-P1-2
    amd64        common manpages relevant to all of the isc-dhcp
packages
ii  wide-dhcpv6-client              20080615-23
    amd64        DHCPv6 client for automatic IPv6 hosts configuration

You might be on to something though here's what is in
/etc/dhcp/dhclient.conf I'm just not sure what options to comment out?

/etc/dhcp#grep -v "#" dhclient.conf

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
        netbios-name-servers, netbios-scope, interface-mtu,
        rfc3442-classless-static-routes, ntp-servers;

Thanks.
Dave.


On 6/27/23, Reco <recovery...@enotuniq.net> wrote:
>       Hi.
>
> On Tue, Jun 27, 2023 at 06:48:52AM -0400, David Mehler wrote:
>> the upgrade itself went just fine. I set my time zone that stuck and
>> is persisting then went for the hostname, I am doing this via ssh, in
>> setting the hostname it won't persist through a reboot.
>
> One of the possible reasons for this is "cloud-init".
> Purge the package, or set "preserve_hostname: true" in
> /etc/cloud/cloud.cfg.
>
> Another one could be DHCP client. "nooption host_name" in dhcpcd.conf
> should fix the issue.
>
> Reco
>
>

Reply via email to