From 5a69428f5ec197dfa054e98e80098b758b36d5b9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 21 May 2013 13:37:55 +0100 Subject: [PATCH] sysprep: Be prepared for CentOS etc. 7 which will act the same way as RHEL 7. --- sysprep/sysprep_operation_hostname.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysprep/sysprep_operation_hostname.ml b/sysprep/sysprep_operation_hostname.ml index 7f1150d69..d38335ec8 100644 --- a/sysprep/sysprep_operation_hostname.ml +++ b/sysprep/sysprep_operation_hostname.ml @@ -66,7 +66,7 @@ let hostname_perform g root = update_etc_hostname (); update_etc_machine_info (); [ `Created_files ] - | "linux", "rhel", v when v >= 7 -> + | "linux", ("rhel"|"centos"|"scientificlinux"|"redhat-based"), v when v >= 7 -> update_etc_hostname (); update_etc_machine_info (); [ `Created_files ]