Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1757101

Summary: setup uses 'hostname' for csh which couldn't be installed
Product: Red Hat Enterprise Linux 8 Reporter: Petr Sklenar <psklenar>
Component: setupAssignee: Pavel Zhukov <pzhukov>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: low    
Version: 8.0Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-10 05:03:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1745245    
Bug Blocks:    

Description Petr Sklenar 2019-09-30 14:59:22 UTC
Description of problem:
setup uses 'hostname' which couldn't be installed

Version-Release number of selected component (if applicable):
setup-2.12.2-2.el8_0.1.noarch

How reproducible:
always

Steps to Reproduce:

1. have a user with csh shell
2. remove hostname package (isn't it depreciated ? or will it)
3. login as user


[root@ci-vm-10-0-137-157 bz1461001-wiretap-does-not-write-drop-count-in-pcapng]# cat /etc/passwd | grep 'a:'
a:x:1000:1000::/home/a:/bin/csh
[root@ci-vm-10-0-137-157 bz1461001-wiretap-does-not-write-drop-count-in-pcapng]# rpm -q hostname
package hostname is not installed
[root@ci-vm-10-0-137-157 bz1461001-wiretap-does-not-write-drop-count-in-pcapng]# su - a
Last login: Mon Sep 30 10:22:40 EDT 2019 on pts/0
/usr/bin/hostname: Command not found.



Actual results:
not nice welcome message


Expected results:
no error

Additional info:

I noticed that /etc/profile uses '2>/dev/null' for enable HOSTNAME variable that hides this issue with default bash. So issue is only for csh.
this is not regression its there for a long time.

Comment 1 Martin Osvald 🛹 2019-10-01 07:22:12 UTC
(In reply to Petr Sklenar ⛄ from comment #0)
> 2. remove hostname package (isn't it depreciated ? or will it)

There is a BZ for Fedora to make setup use hostnamectl instead of hostname so as soon as it gets fixed in Fedora, this could get fixed in RHEL too:

Bug 1745245 - `/etc/profile` should use `/usr/bin/hostnamectl` by default instead of `/usr/bin/hostname`

Comment 3 Pavel Zhukov 2020-07-10 05:03:47 UTC
This bug is fixed in Fedora and since it has low priority it's unlikely it'll be included in RHEL. Closing as wontfix based on management with the reporter.