[Pkg-sysvinit-devel] Bug#643771: initscripts: hostname is set to FQDN; /etc/hostname not read or hostname.sh not executed?
Wouter Van Hemel
wouter-debian at publica.duodecim.org
Thu Sep 29 13:45:56 UTC 2011
Since yesterday, `hostname` returns the FQDN and also $HOSTNAME is set to the FQDN.
/etc/hostname contains just the hostname (a single word) and is readable, so I assume /etc/init.d/hostname.sh somehow doesn't read /etc/hostname anymore.
Perhaps this is related to the /run switch? Either hostname.sh isn't executed or /etc/hostname isn't read.
/etc is on the / partition, as is /boot, so this is not a mount problem.
X behaved funnily as applications couldn't connect to the X server anymore due to the hostname changing – probably during an apt update, or perhaps some daemon crashed. While the problem appears minor, the consequences might be more serious, depending on what exactly is in /etc/hostname, /etc/hosts and friends.
Thanks for your time,
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.39-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages initscripts depends on:
ii coreutils 8.13-2
ii debianutils 4.0.2
ii libc6 2.13-21
ii lsb-base 3.2-28
ii mount 2.19.1-5
ii sysv-rc 2.88dsf-13.11
ii sysvinit-utils 2.88dsf-13.11
Versions of packages initscripts recommends:
ii e2fsprogs 1.42~WIP-2011-09-25-1
ii psmisc 22.14-1
initscripts suggests no packages.
-- no debconf information
More information about the Pkg-sysvinit-devel