This is an automated email from the ASF dual-hosted git repository.

bhaisaab pushed a commit to branch debian9-systemvmtemplate
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit 2e3871753aedc63bd1f19501fb413e8739cde0e5
Author: Rohit Yadav <[email protected]>
AuthorDate: Tue Nov 21 17:08:37 2017 +0530

    use hostnamectl to add hostname
    
    Signed-off-by: Rohit Yadav <[email protected]>
---
 systemvm/patches/debian/config/etc/init.d/cloud-early-config | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/systemvm/patches/debian/config/etc/init.d/cloud-early-config 
b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
index 6eaed91..8b0c814 100755
--- a/systemvm/patches/debian/config/etc/init.d/cloud-early-config
+++ b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
@@ -587,7 +587,7 @@ setup_common() {
    
   echo $NAME > /etc/hostname
   echo 'AVAHI_DAEMON_DETECT_LOCAL=0' > /etc/default/avahi-daemon
-  hostname $NAME
+  hostnamectl set-hostname $NAME
   
   #Nameserver
   sed -i -e "/^nameserver.*$/d" /etc/resolv.conf # remove previous entries
@@ -967,7 +967,7 @@ EOF
    
   echo $NAME > /etc/hostname
   echo 'AVAHI_DAEMON_DETECT_LOCAL=0' > /etc/default/avahi-daemon
-  hostname $NAME
+  hostnamectl set-hostname $NAME
   
   #Nameserver
   sed -i -e "/^nameserver.*$/d" /etc/resolv.conf # remove previous entries

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to