Package: vzctl
Version: 3.0.22-14

/etc/hostname should contain only the hostname of the system, i.e. "foo"
for foo.example.org. The file /etc/vz/dists/scripts/debian-set_hostname.sh
puts the fully-qualified domain name in /etc/hostname.

Quick patch to fix it:

--- debian-set_hostname.sh.dist 2008-11-15 20:55:26.000000000 +0000
+++ debian-set_hostname.sh      2010-01-22 13:18:14.000000000 +0000
@@ -31,6 +31,9 @@
        local cfgfile=$1
        local hostname=$2
 
+       # /etc/hostname should only contain the host name, not the FQDN
        hostname ${hostname}
+       hostname=$(echo $hostname | sed 's/\..*//')
+
        [ -z "${hostname}" ] && return 0
        echo "${hostname}" > /etc/hostname
        hostname ${hostname}


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-openvz-amd64 (SMP w/2 CPU cores)
Locale: lang=en...@euro, lc_ctype=en...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages vzctl depends on:
ii  iproute                       20080725-2 networking and traffic control too
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  vzquota                       3.0.11-1   server virtualization solution - q

Versions of packages vzctl recommends:
ii  rsync                         3.0.3-2    fast remote file copy program (lik

Versions of packages vzctl suggests:
pn  linux-patch-openvz            <none>     (no description available)

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to