summaryrefslogtreecommitdiffstats
path: root/sysprep/sysprep_operation_hostname.ml
diff options
context:
space:
mode:
authorQin Guan <qguan@redhat.com>2012-04-10 14:13:40 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-04-10 14:15:08 +0100
commit60b87d0a5c97a458cefb6c5d31eeede7709f5a3d (patch)
tree1ed5e601c2716da36343d22dc8aee60f38723983 /sysprep/sysprep_operation_hostname.ml
parent8ae322e5a70e3d39ac9952f4bb15718f800e133a (diff)
downloadlibguestfs-60b87d0a5c97a458cefb6c5d31eeede7709f5a3d.tar.gz
libguestfs-60b87d0a5c97a458cefb6c5d31eeede7709f5a3d.tar.xz
libguestfs-60b87d0a5c97a458cefb6c5d31eeede7709f5a3d.zip
sysprep: Allow hostname to be set on other Red Hat derivatives (RHBZ#811112).
Diffstat (limited to 'sysprep/sysprep_operation_hostname.ml')
-rw-r--r--sysprep/sysprep_operation_hostname.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysprep/sysprep_operation_hostname.ml b/sysprep/sysprep_operation_hostname.ml
index 1472a1c4..51f93865 100644
--- a/sysprep/sysprep_operation_hostname.ml
+++ b/sysprep/sysprep_operation_hostname.ml
@@ -29,7 +29,7 @@ let hostname_perform g root =
let typ = g#inspect_get_type root in
let distro = g#inspect_get_distro root in
match typ, distro with
- | "linux", ("fedora"|"rhel") ->
+ | "linux", ("fedora"|"rhel"|"centos"|"scientificlinux"|"redhat-based") ->
(* Replace HOSTNAME=... entry. The code assumes it's a small,
* plain text file.
*)