Project

General

Profile

Bug #60480

Fix hostname in iocage rc.conf and /etc/hosts generation

Added by Bug Clerk almost 3 years ago. Updated over 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Brandon Schneider
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Creating a jail named "unifi.example.com" w/ IP x.y.z.w/24 produces the following /etc/hosts (comments removed):

::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain example
x.y.z.w/24 unifi.example.com example

The CIDR is included and the hostname's short form is incorrectly calculated.

/etc/rc.conf contains the following hostname configuration:

host_hostname="unifi.example.com"

which AFAIK shouldn't even do anything - I don't see where /etc/rc.d/hostname would even see that variable.

iocage_hostname.png (9.75 KB) iocage_hostname.png Aaron St. John, 02/13/2019 05:17 AM
54228

Related issues

Copied from FreeNAS - Bug #58794: Jail - /etc/hosts not generated correctlyDone

History

#1 Updated by Bug Clerk almost 3 years ago

  • Copied from Bug #58794: Jail - /etc/hosts not generated correctly added

#2 Updated by Bug Clerk almost 3 years ago

  • Status changed from Unscreened to In Progress

#3 Updated by Bug Clerk almost 3 years ago

  • Status changed from In Progress to Ready for Testing

#4 Updated by Bug Clerk almost 3 years ago

  • Target version changed from Master - FreeNAS Nightlies to 11.2-U2

#5 Updated by Dru Lavigne almost 3 years ago

  • Subject changed from Jail - /etc/hosts not generated correctly to Fix hostname in iocage rc.conf and /etc/hosts generation
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#8 Updated by Aaron St. John over 2 years ago

54228

Tested on FreeNAS-11.2-U2-INTERNAL88

See screenshot.

#9 Updated by Aaron St. John over 2 years ago

  • Needs QA changed from Yes to No

#10 Updated by Dru Lavigne over 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF