Quick question: is it possible to have two %post sections after each other?

In the first one I want to use

%post --nochroot

...copy some local files...

%end

%post

...do some work in the chrooted livecd copy...

%end

I seem to be having issues with accessing the /home/liveuser folder in the
second %post...I always get errors that it is not there.
Does my first %post --nochroot interfere somehow with the subsequent one?

Thanks
Jacek

On Thu, Jun 7, 2012 at 10:14 AM, Jacek Furmankiewicz <[email protected]>wrote:

> Thanks for all your help.
>
> I managed to get it to work with the --nochroot option.
> Hope to have some results to show soon.
>
> I am trying to create an XFCE-based remix, but with all the extra goodies
> like in Fusion/Kororaa, etc.
>
> Cheers
> Jacek
>
>
> On Thu, Jun 7, 2012 at 6:49 AM, [email protected] <
> [email protected]> wrote:
>
>> On Thu, Jun 7, 2012 at 3:02 AM, Jacek Furmankiewicz <[email protected]>
>> wrote:
>> > I am trying to copy some default user settings from my local folder to
>> the
>> > /etc/skel folder on the live CD, e.g.:
>> >
>> > %post
>> >
>> > # set default user config
>> > cp -r $PWD/config/.config $INSTALL_ROOT/etc/skel
>> >
>> > %end
>> >
>> > But it doesn't work...
>> >
>> > cp: cannot stat `/home/jacekf/src/remix/config/.config': No such file or
>> > directory
>> >
>> > Is there some trick for bringing in custom files from your local
>> filesystem
>> > into the live CD?
>> >
>> > Thank you
>> > Jacek
>>
>> It is a bit tricky, you need to do it outside of root environment,
>> hence do this in "--nochroot" part of kickstart file, but you need to
>> know which temp directory is used for root.
>>
>> You can check out my kickstart file for inspiration:
>>
>> https://github.com/valentt/Fusion-Linux/blob/master/kickstarts/fusion-17/fusion-live-extras.ks
>>
>> you should specify which temp folder to use when starting
>> livecd-creator with --temp= option
>>
>> Hope this helps.
>>
>>
>>
>> --
>> follow me - www.twitter.com/valentt & http://kernelreloaded.blog385.com
>> linux, anime, spirituality, wireless, scuba, linuxmce smart home, zwave
>> ICQ: 2125241, Skype: valent.turkovic, MSN: [email protected]
>> _______________________________________________
>> remixes mailing list
>> [email protected]
>> https://admin.fedoraproject.org/mailman/listinfo/remixes
>>
>
>
_______________________________________________
remixes mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/remixes

Reply via email to