[Revisor-users] Question about strip_copy_dir & %post directives
Kevin Wilson
Kevin.Wilson at comtrol.com
Fri Sep 7 18:19:09 UTC 2007
Found the issue. The default livecd-fedora-minimal.ks script has two "repo" lines in it whereas the sample-ks.cfg doesn't. Commented out those two lines and away it went.
Again, sorry for the false alarm and thanks for the git cmd info.
-----Original Message-----
From: revisor-users-bounces at fedoraunity.org
[mailto:revisor-users-bounces at fedoraunity.org]On Behalf Of Kevin Wilson
Sent: Friday, September 07, 2007 13:09
To: Revisor User Discussion and Support List
Subject: Re: [Revisor-users] Question about strip_copy_dir & %post
directives
Hold on. I removed the import yum statement and reran the app and it didn't emit that attribute error again. Gonna start fresh again and see where that takes me.
Sorry for the false alarm it seems.
-----Original Message-----
From: revisor-users-bounces at fedoraunity.org
[mailto:revisor-users-bounces at fedoraunity.org]On Behalf Of Kevin Wilson
Sent: Friday, September 07, 2007 12:45
To: Revisor User Discussion and Support List
Subject: Re: [Revisor-users] Question about strip_copy_dir & %post
directives
I added the import yum to load_kickstart.py but now this weird message
pops up. I'm thinking my addition of the import directive was wrong?
Set destination directory to /srv/revisor/f7-i386
self.cfg.repos from load kickstart: {'fedora': True, 'updates': True}
Traceback (most recent call last):
File "/root/revisor/revisor/load_kickstart.py", line 207, in
button_forward_clicked
self.store_options()
File "/root/revisor/revisor/load_kickstart.py", line 173, in store_options
repoObj = yum.yumRepo.YumRepository(repo["name"])
AttributeError: FC6_RepoData instance has no attribute '__getitem__'
Kevin Wilson wrote:
> Hey Jeroen,
>
> The latest git has a glitch (see below). Also, if I just want to grab
> the latest commits from git to update my local copy which cmd would I
> use? I looked at the help list and there wasn't an "update" cmd and what
> its equivalent would be wasn't apparent to me. (sorry, svn users here)
>
> **************************************************************************
> Setting comps to '/etc/revisor/comps-f7.xml' (from configuration file
> model f7-i386)
> Checking working directories
> Checking destination directories
> Set destination directory to /srv/revisor/f7-i386
> self.cfg.repos from load kickstart: {'fedora': True, 'updates': True}
> Traceback (most recent call last):
> File "/root/revisor/revisor/load_kickstart.py", line 206, in
> button_forward_clicked
> self.store_options()
> File "/root/revisor/revisor/load_kickstart.py", line 172, in store_options
> repoObj = yum.yumRepo.YumRepository(repo["name"])
>
> NameError: global name 'yum' is not defined
> **************************************************************************
>
>
> Jeroen van Meeuwen wrote:
>> Kevin Wilson wrote:
>>> Sweet! I'll give git a pull tomorrow to test everything and also see how my %post section copy statements work out. Thanks again for the copy_dir changes, it plopped the folder in root perfectly.
>>>
>>> Question: Must I prefix the cp directives in the %post section of my kickstart file same as you did for the copy_dir operation or will the absolute paths I have now work ok?
>>>
>> Your %post script will run just like it would on the running (rebooted
>> after installation) system.
>>
>> Kind regards,
>>
>> Jeroen van Meeuwen
>> -kanarip
>>
>> --
>> http://www.kanarip.com/
>> RHCE, LPIC-2, MCP, CCNA
>> C6B0 7FB4 43E6 CDDA D258 F70B 28DE 9FDA 9342 BF08
>> _______________________________________________
>> Revisor-users mailing list
>> Revisor-users at fedoraunity.org
>> http://lists.fedoraunity.org/mailman/listinfo/revisor-users
>>
> _______________________________________________
> Revisor-users mailing list
> Revisor-users at fedoraunity.org
> http://lists.fedoraunity.org/mailman/listinfo/revisor-users
>
_______________________________________________
Revisor-users mailing list
Revisor-users at fedoraunity.org
http://lists.fedoraunity.org/mailman/listinfo/revisor-users
_______________________________________________
Revisor-users mailing list
Revisor-users at fedoraunity.org
http://lists.fedoraunity.org/mailman/listinfo/revisor-users
More information about the Revisor-users
mailing list