From ae0f60744b7f20538f8b9945ef99301fa1ecfe45 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 19 Sep 2012 18:18:29 +0100 Subject: sysprep: handle SuSE in hostname operation SuSE based installations store the hostname in /etc/HOSTNAME. Add code to handle both opensuse and sles. Code to properly detect the latter will be added with another patch. Signed-off-by: Olaf Hering --- sysprep/sysprep_operation_hostname.ml | 4 ++++ 1 file changed, 4 insertions(+) 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 ] -- cgit