Wind River Support Network

HomeDefectsLIN1018-3884
Fixed

LIN1018-3884 : short hostname no longer works

Created: Apr 10, 2019    Updated: Apr 24, 2019
Resolved Date: Apr 14, 2019
Found In Version: unknown
Fix Version: 10.18.44.6
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: Userspace

Description

On WRL9 for the zynqpm we could use “hostname -s” to get the short 
hostname for automated tests. On LTS17 this no longer works:
root@xilinx-zynqmp:~# hostname -s
hostname: Unknown host
 
However, just “hostname” gives the expected response:
root@xilinx-zynqmp:~# hostname

Steps to Reproduce

wrlinux-x/setup.sh --machines xilinx-zynqmp intel-x86-64 --all-layers --dl-layers 
MACHINE ?= "qemuarm64"
. ./oe-init-build-env
bitbake wrlinux-image-glibc-std
runqemu qemuarm64

login as root
hostname -s
hostname: Unknown host
Live chat
Online