OpenVZ bug created for this. http://bugzilla.openvz.org/show_bug.cgi?id=1035
Best regards, // Ola On Thu, Oct 02, 2008 at 08:39:12AM +0200, Sebastian Klamar wrote: > Package: vzctl > Version: 3.0.22-11 > Severity: normal > Tags: patch > > *** Please type your report below this line *** > > The vzctl startup script /etc/vz/dists/scripts/debian-set_hostname.sh > does not setup /etc/mailname properly. It's left with localhost set. > > The following patch should solve this. It also removes a small cosmetic > bug: The function set_hostname did not use the ${cfgfile} variable. > > --- /tmp/debian-set_hostname.sh 2008-10-01 15:32:06.000000000 +0200 > +++ /etc/vz/dists/scripts/debian-set_hostname.sh 2008-10-01 > 15:32:19.000000000 +0200 > @@ -32,11 +32,12 @@ > local hostname=$2 > > [ -z "${hostname}" ] && return 0 > - echo "${hostname}" > /etc/hostname > + echo "${hostname}" > ${cfgfile} > hostname ${hostname} > } > > change_hostname /etc/hosts "${HOSTNM}" "${IP_ADDR}" > set_hostname /etc/hostname "${HOSTNM}" > +set_hostname /etc/mailname "${HOSTNM}" > > exit 0 > > > -- System Information: > Debian Release: 4.0 > APT prefers stable > APT policy: (900, 'stable'), (500, 'proposed-updates'), (90, 'testing') > Architecture: i386 (i686) > Shell: /bin/sh linked to /bin/dash > Kernel: Linux 2.6.26-bpo.1-openvz-686 > Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) > > Versions of packages vzctl depends on: > ii iproute 20061002-3 Professional tools to control the > ii libc6 2.3.6.ds1-13etch7 GNU C Library: Shared libraries > ii vzquota 3.0.11-1 server virtualization solution - > q > > Versions of packages vzctl recommends: > ii rsync 2.6.9-2etch2 fast remote file copy program > (lik > > -- no debconf information > > -- > Lieber... > eine Latte in der Hose als ein Brett vor dem Kopf. > ************************************************************************ > PGP Key: 0x1E727CE6 / 9085 48BD 8332 4BFC D80C A6CF D162 20BB 1E72 7CE6 > > > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 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 [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]