Nicholas Strugnell
2013-Jul-31 15:29 UTC
[Libguestfs] [PATCH] sysprep: rhn_systemid: delete osad-auth.conf file in RHN
From 3d321e22fc34f828fdc9cb7a0f503d1bdcf982c3 Mon Sep 17 00:00:00 2001 From: Nicholas Strugnell <nstrug@redhat.com> Date: Wed, 31 Jul 2013 16:24:20 +0100 Subject: [PATCH] sysprep: rhn_systemid: delete osad-auth.conf file in RHN configuration --- sysprep/sysprep_operation_rhn_systemid.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/sysprep/sysprep_operation_rhn_systemid.ml b/sysprep/sysprep_operation_rhn_systemid.ml index 99ab5e1..6ccf5af 100644 --- a/sysprep/sysprep_operation_rhn_systemid.ml +++ b/sysprep/sysprep_operation_rhn_systemid.ml @@ -28,6 +28,7 @@ let rhn_systemid_perform g root match typ, distro with | "linux", "rhel" -> (try g#rm "/etc/sysconfig/rhn/systemid" with G.Error _ -> ()); + (try g#rm "/etc/sysconfig/rhn/osad-auth.conf" with G.Error _ -> ()); [] | _ -> [] -- 1.8.3.1 -- Principal Architect, Europe M: +44 7736 665171 nstrug@redhat.com
Richard W.M. Jones
2013-Jul-31 15:33 UTC
Re: [Libguestfs] [PATCH] sysprep: rhn_systemid: delete osad-auth.conf file in RHN
On Wed, Jul 31, 2013 at 04:29:58PM +0100, Nicholas Strugnell wrote:> sysprep/sysprep_operation_rhn_systemid.ml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sysprep/sysprep_operation_rhn_systemid.ml b/sysprep/sysprep_operation_rhn_systemid.ml > index 99ab5e1..6ccf5af 100644 > --- a/sysprep/sysprep_operation_rhn_systemid.ml > +++ b/sysprep/sysprep_operation_rhn_systemid.ml > @@ -28,6 +28,7 @@ let rhn_systemid_perform g root > match typ, distro with > | "linux", "rhel" -> > (try g#rm "/etc/sysconfig/rhn/systemid" with G.Error _ -> ()); > + (try g#rm "/etc/sysconfig/rhn/osad-auth.conf" with G.Error _ -> ()); > [] > | _ -> [] >I have pushed this. Thanks for your contribution. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW