Hi Stephen

Looks like it is the same on all distributions. Also I wonder why
the FQDN is sent to this script at all.

How did you invoke vzctl in order to make this happen?

Best regards,

// Ola

On Fri, Jan 22, 2010 at 01:27:28PM +0000, Stephen Dolan wrote:
> 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
> 
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  o...@debian.org                     Annebergsslingan 37      \
|  o...@inguza.com                      654 65 KARLSTAD          |
|  http://inguza.com/                  +46 (0)70-332 1551       |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------



-- 
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