Greetings,

----- Original Message -----
> On Tue, Dec 29, 2020 at 11:17 PM Scott Dowdle
> Next, I should tell you that I did not require the shadow-utils
> package, I just had to use the "not-rawhide" repos.
> Here is how I did it:

I believe you... as it should have been pulled in by dependencies  and not need 
to be explicitly listed.  For my builds I favor complete (unversioned) package 
lists rather than using package groups.  That takes more work... as before I 
start a new build, I create a VM (for the spins I care about anyway), get it 
setup how I like it... and then export a package list... which I %include in my 
kickstart.  That's probably going overboard but works-for-me.

> I also found that livecd-creator does not need a flattened kickstart
> you can just use a regular kickstart and it is smart enough to figure
> out by itself what to do.

That is correct.  I make my package list a separate file and it is easy to 
include a different list without having to edit the kickstart.  ANOTHER 
advantage of livecd-creator over livemedia-creator.  Also the repo defs in lcc 
are normal looking whereas they are different/weird in lmc.  So, for my 
kickstarts everything is all in one file except for the package list and the 
repo list which I use %includes for.

> I do have a couple of questions though. You see, the main reason I am
> creating my livecd is because I want to put all my home settings into
> it like the config/ and local/ folder.
> 
> I have noticed some strange things with regards to the /home/liveuser
> directory. If you unsquash the squashfs.img in the LiveOS directory
> and mount rootfs.img you will see that under /home there is no
> directory for liveuser.
> Yet when I boot the live image I get a directory in the live system
> called /home/liveuser.
> 
> Where does it spontaneously materialize from ?

The %post stuff really creates a script on the media that gets run at boot 
time... so the liveuser is created every time the live media boots... and is 
NOT baked-in.   If you want to dump liveuser account customizations in, you're 
going to have to find a way to make it part of the script that creates the 
liveuser account on boot.  That shouldn't be too hard.  You'll just have to 
copy everything you care about into your image (usually doable in the "%post 
--nochroot" section so you have a stuff to copy from.  I can provide an example 
of that from my own REMIX kickstarts although I'm not copying anything into 
liveuser but into /root/ as my media includes the build scripts that they were 
made with under /root/livecd-creator.  The root account IS baked-in a little 
easier.

> Lastly, I would like to know the order in which the %post sections
> are executed in a kickstart file. What is the ordering ? How is that
> ordering determined ?

I've always wondered that myself... which is why in my kickstarts I manually 
edit and merge all of the %posts into a single %post... which removes the 
mystery.  I wish I had a better answer for you on that.

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
_______________________________________________
livecd mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to