summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysprep/sysprep_operation_hostname.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysprep/sysprep_operation_hostname.ml b/sysprep/sysprep_operation_hostname.ml
index 4b9d6d17..db541848 100644
--- a/sysprep/sysprep_operation_hostname.ml
+++ b/sysprep/sysprep_operation_hostname.ml
@@ -54,6 +54,10 @@ let hostname_perform g root =
);
[ `Created_files ]
+ | "linux", ("opensuse"|"sles") ->
+ g#write "/etc/HOSTNAME" !hostname;
+ [ `Created_files ]
+
| "linux", ("debian"|"ubuntu") ->
g#write "/etc/hostname" !hostname;
[ `Created_files ]