Hostname changes not persistent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Only applicable to Ubuntu 18.04. Changes made via "hostnamectl set-hostname" are not persistent - reverts after a reboot.
See results details below:
# hostnamectl status
Static hostname: xxxlxd903
Icon name: computer-vm
Chassis: vm
Machine ID: ee8de2e6dffc42f
Boot ID: 463b63d5bc3942a
Virtualization: vmware
Operating System: Ubuntu 18.04 LTS
Kernel: Linux 4.15.0-24-generic
Architecture: x86-64
# hostnamectl set-hostname xxxlxd903x
# hostnamectl status
Static hostname: xxxlxd903x
Icon name: computer-vm
Chassis: vm
Machine ID: ee8de2e6dffc42f
Boot ID: 463b63d5bc3942a
Virtualization: vmware
Operating System: Ubuntu 18.04 LTS
Kernel: Linux 4.15.0-24-generic
Architecture: x86-64
# shutdown -r now
...
$ hostnamectl status
Static hostname: xxxlxd903
Icon name: computer-vm
Chassis: vm
Machine ID: ee8de2e6dffc42f
Boot ID: ffb13e8eb23f400
Virtualization: vmware
Operating System: Ubuntu 18.04 LTS
Kernel: Linux 4.15.0-24-generic
Architecture: x86-64
Note: System is fully patched now. Was happening earlier too - with a fresh install.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: systemd 237-3ubuntu10
ProcVersionSign
Uname: Linux 4.15.0-24-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Wed Jul 4 12:52:19 2018
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: VMware, Inc. VMware Virtual Platform
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/05/2016
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: VMware Virtual Platform
dmi.product.
dmi.sys.vendor: VMware, Inc.
modified.
mtime.conffile.
please reopen if this is still an issue