Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#33815 - [netcfg] ethernet-dhcp incorrectly sets the hostname

Attached to Project: Arch Linux
Opened by Marek Kozlowski (guayasil) - Monday, 11 February 2013, 16:55 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 30 April 2013, 01:04 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Jouke Witteveen (jouke)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I'm using `netcfg' with `ethernet-dhcp'. My `/etc/dhcpcd.conf' contains the line

option domain_name_servers, domain_name, domain_search, host_name

Unfortunately in most cases (randomly?) my host introduces itself as `localhost'. If I run:

# dhcpcd -k eth0
# dhcpcd eth0

it gets quite confusing:

$ hostname
correct.one.obtained.from.dhcp
$ hostnamectl
Static hostname: n/a
Transient hostname: localhost
Pretty hostname: n/a
Icon name: computer-desktop
Chassis: desktop
Machine ID: fcad978cb45784804c79ace4000004dc
Boot ID: a282df65df6c4ed0910536ab38087300
Operating System: Arch Linux
Kernel: Linux 3.7.5-1-ARCH
Architecture: x86_64

and for some ttys it is `localhost' while for others: `correct.one.obtained.from.dhcp'.

Contrary to `netcfg' the `dhcpcd.service' works well:

# hostname
correct.one.obtained.from.dhcp
# hostnamectl
Static hostname: n/a
Transient hostname: correct.one.obtained.from.dhcp
Pretty hostname: n/a
Icon name: computer-desktop
Chassis: desktop
Machine ID: fcad978cb45784804c79ace4000004dc
Boot ID: 00c0217d2aff4259bbd71a718031796c
Operating System: Arch Linux
Kernel: Linux 3.7.6-1-ARCH
Architecture: x86_64

This task depends upon

Closed by  Eric Belanger (Snowman)
Tuesday, 30 April 2013, 01:04 GMT
Reason for closing:  Won't fix
Additional comments about closing:  netcfg has been moved to AUR

Loading...