Olaf Hering
2012-Sep-21 11:49 UTC
[Libguestfs] [PATCH] sysprep: handle suse-based in hostname operation
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
Richard W.M. Jones
2012-Sep-21 13:10 UTC
[Libguestfs] [PATCH] sysprep: handle suse-based in hostname operation
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