On 01/09/2012 07:45 PM, Brian C. Lane wrote: > On Mon, Jan 09, 2012 at 10:51:45AM -0500, William Cohen wrote: >> I am working on building a live image for systemtap. I was hoping to >> leverage as much from the the existing fedora-livecd-desktop.ks file using >> the %include and just have the additional systemtap related stuff in the >> file. One of the things I would like to do is add some groups to the live >> user using the following in my kickstart file: >> > > I'm not sure why you're getting that error, but it still wouldn't work. > The liveuser user isn't created until the system boots so you need to > put your usermod after the useradd in the livesys script.
I ended up taking that approach of putting the usermod command right after the useradd in fedora-live-base.ks for the time being. However, with your explanation above I understand better when liveuser is created. The /etc/rc.d/init.d/livesys does the useradd when the machine starts up. So should be able to do something like the following in fedora-live-stap.ks to add the command and reuse the existing .ks files: %post cat >> /etc/rc.d/init.d/livesys << EOF # add fedora user to SystemTap groups usermod -a -G stapusr,stapdev liveuser FOE %end How does one get ks spin files included in the spin-kickstarts rpm? -Will -- livecd mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/livecd
