[Clip] clip.ks and setools package

Ted Toth txtoth at gmail.com
Tue Apr 26 10:46:30 CDT 2011


Indeed the comps.xml was not being generated incorrectly as the file
which was be used to generate it was gzip'd and was not being
uncompressed before being read. This patch of revisor-2.0.5.2-3 worked
for me and I was able to successfully create a vm from the clip iso
without the complaints about the missing base group.


--- /usr/lib/python2.4/site-packages/revisor/cfg.py	2009-05-31
04:17:52.000000000 -0700
+++ cfg.py	2011-04-26 08:29:35.000000000 -0700
@@ -24,6 +24,7 @@
 from revisor.errors import *
 import shutil
 import subprocess
+import gzip

 from ConfigParser import SafeConfigParser

@@ -240,7 +241,10 @@
             else:
                 start = 1
                 end = -1
-                compslines = open(groupfile, 'r').readlines()
+                if groupfile.endswith(".gz"):
+                    compslines = gzip.open(groupfile).readlines()
+                else:
+                    compslines = open(groupfile, 'r').readlines()
                 for line in compslines:
                     if line.startswith('</comps>'):
                         end = compslines.index(line)


Ted

On Mon, Apr 25, 2011 at 5:16 PM, Joe Nall <joe at nall.com> wrote:
>
> On Apr 25, 2011, at 7:10 PM, Gallucci, John (US SSA) wrote:
>
>> Since the @base group is the very first package listed, I imagine it means that your yum repository to the local DVD isn't setup correctly.
>
> createrepo without a comps file? It should be something like:
> createrepo -g comps.xml $REPO
>
> joe
>
>>   I would double check that you have properly configured your yum repo.  The best way to test it out is to manually configure a running Linux machine with the yum configuration and do a 'yum -y install clip' (or any other package on the DVD) and verify that packages can be successfully installed from the DVD.
>>
>> I think during the kickstart installation you can change to TTY3 (or TTY2 I can't remember) and issue that command.
>>
>> -John.
>>
>>
>> -----Original Message-----
>> From: Ted Toth [mailto:txtoth at gmail.com]
>> Sent: Monday, April 25, 2011 5:04 PM
>> To: Gallucci, John (US SSA)
>> Cc: clip at oss.tresys.com
>> Subject: Re: [Clip] clip.ks and setools package
>>
>> Thanks I'll try this. I'm also having a problem when I do an install using the clip iso where it complains that there is no base group have you seen this issue? I looked at the comps.xml in the iso but it isn't text (XML) it looks like binary data.
>>
>> Ted
>>
>> On Mon, Apr 25, 2011 at 3:12 PM, Gallucci, John (US SSA) <john.gallucci at baesystems.com> wrote:
>>> The packages under "Remove Packages for PL4 Compliance" needs to be updated.  Last month I submitted a modified kickstart configuration for review and have yet to receive any feedback.  About 90% of the packages that are being explicitly removed are not installed in the first place.  This is due to the fact that the package groups are commented out (the sections with the @).  Because the groups are not installed, it is not necessary to explicitly remove these packages.  I imagine these were just left behind in case someone wanted to enable a packages (e.g. base-x) and needed to know which ones from that group need to be removed.
>>>
>>> Since this form isn't attachment friendly, below is the package section for the modified kickstart I have suggested.  In my testing this truncated kickstart yields the same package installation footprint as the original clip.ks file.
>>>
>>> -----------------begin section of clip.ks------------------------- #
>>> Install Packages.  This is site specific.
>>> %packages
>>> @base
>>>
>>> #########################
>>> # Add Packages for CLIP #
>>> #########################
>>> aide
>>> audit
>>> policycoreutils-newrole
>>> ruby
>>> setools
>>> sysstat
>>> vlock
>>>
>>> #####################################
>>> # Remove tcpdump per STIG gen003865 #
>>> #####################################
>>> -tcpdump
>>>
>>> ############################################
>>> # Remove (BASE) Packages for PL4 compliance#
>>> ############################################
>>> -NetworkManager
>>> -autofs
>>> -bluez-utils
>>> -finger
>>> -irda-utils
>>> -nfs-utils
>>> -rsh
>>> -telnet
>>> -wireless-tools
>>> -ypbind
>>> -yum-updatesd
>>> ----------------end section of clip.ks---------------------------
>>>
>>> John Gallucci IV | Senior Systems Engineer
>>> Phone: 858.592.5499 | Cell: 858.776.6820 BAE Systems, Inc.,
>>> Information Solutions
>>> 10920 Technology Pl. | San Diego, CA 92129
>>>
>>> -----Original Message-----
>>> From: clip-bounces at oss.tresys.com [mailto:clip-bounces at oss.tresys.com]
>>> On Behalf Of Ted Toth
>>> Sent: Monday, April 25, 2011 2:26 PM
>>> To: clip at oss.tresys.com
>>> Subject: [Clip] clip.ks and setools package
>>>
>>> Why does the kickstart include and then exclude the setools package?
>>>
>>> Ted
>>> _______________________________________________
>>> Clip mailing list
>>> Clip at oss.tresys.com
>>> http://oss.tresys.com/mailman/listinfo/clip
>>>
>> _______________________________________________
>> Clip mailing list
>> Clip at oss.tresys.com
>> http://oss.tresys.com/mailman/listinfo/clip
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comps-gz.patch
Type: application/octet-stream
Size: 784 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/clip/attachments/20110426/c0b471bf/attachment-0001.obj 


More information about the Clip mailing list