[Libguestfs] [PATCH] sysprep: rhn_systemid: delete osad-auth.conf file in RHN

Nicholas Strugnell nstrug at redhat.com
Wed Jul 31 15:29:58 UTC 2013


From 3d321e22fc34f828fdc9cb7a0f503d1bdcf982c3 Mon Sep 17 00:00:00 2001
From: Nicholas Strugnell <nstrug at 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 at redhat.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20130731/6d6815d7/attachment.sig>


More information about the Libguestfs mailing list