Bug 1372269 - Builder does not set hostname properly for Debian 8 (Jessie)
Summary: Builder does not set hostname properly for Debian 8 (Jessie)
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
: 1251499 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-01 09:53 UTC by Lukas Zapletal
Modified: 2016-09-22 16:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-02 22:16:07 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 953907 0 unspecified CLOSED virt-sysprep does not correctly set the hostname on Debian/Ubuntu 2021-02-22 00:41:40 UTC

Internal Links: 953907

Description Lukas Zapletal 2016-09-01 09:53:08 UTC
# virt-spawn debian-8 --hostname jessie.local.lan
...

# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 unassigned-hostname.unassigned-domain jessie.local.lan
...

# hostname -f
unassigned-hostname.unassigned-domain

But expected is:

# hostname -f
jessie.local.lan

The thing is that order matters in hosts, the FQDN should always be first on the line:

127.0.1.1 jessie.local.lan jessie alias2 alias3

Comment 1 Richard W.M. Jones 2016-09-01 13:02:09 UTC
Patch posted:
https://www.redhat.com/archives/libguestfs/2016-September/msg00006.html

Comment 3 Pino Toscano 2016-09-22 16:00:22 UTC
*** Bug 1251499 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.