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

Richard W.M. Jones rjones at redhat.com
Fri Sep 21 13:10:03 UTC 2012


On Fri, Sep 21, 2012 at 01:49:03PM +0200, Olaf Hering wrote:
> 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 ]
>  

Thanks - pushed.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list