Uploaded image for project: 'OpenVZ'
  1. OpenVZ
  2. OVZ-4174

Bug#500862: vzctl: does not setup /etc/mailname

    XMLWordPrintable

    Details

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igor Igor Sukhih
              Reporter:
              ola@inguza.com Ola Lundqvist
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: