[Libguestfs] [PATCH] sysprep: handle suse-based in hostname operation

Olaf Hering olaf at aepfle.de
Fri Sep 21 11:49:03 UTC 2012


Signed-off-by: Olaf Hering <olaf at aepfle.de>

diff --git a/sysprep/sysprep_operation_hostname.ml b/sysprep/sysprep_operation_hostname.ml
index 363069b..cbac46a 100644
--- a/sysprep/sysprep_operation_hostname.ml
+++ b/sysprep/sysprep_operation_hostname.ml
@@ -45,7 +45,7 @@ let hostname_perform g root =
     g#write filename file;
     [ `Created_files ]
 
-  | "linux", ("opensuse"|"sles") ->
+  | "linux", ("opensuse"|"sles"|"suse-based") ->
     g#write "/etc/HOSTNAME" !hostname;
     [ `Created_files ]
 
-- 
1.7.12




More information about the Libguestfs mailing list