]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix: hostname: fallback to the guest name
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 19 Jun 2024 20:04:01 +0000 (17:04 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 19 Jun 2024 20:04:01 +0000 (17:04 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 214f5609a44878e374f31a6b00822e3c4320dd38..5e336a94ff219764561385438b41004f300bbfe2 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -125,8 +125,8 @@ function __kvmx_initialize {
   # Load the default config, providing defaults
   source $APP_BASE/kvmxfile || exit 1
 
-  # Set hostname (this is already done with the default config)
-  #hostname="${hostname:-$VM}"
+  # Set hostname
+  hostname="${hostname:-$VM}"
 
   # Set domain (this is already done with the default config)
   #domain="${domain:-example.org}"