<div>We have several use cases for the liveCD/liveUSB. </div>
<div>Some of the use cases require that there is manual intervention after boot up for configuring the system and application evironment . But we have at least two use cases where both system and application configuration is done post-boot with no manual intervention. 
</div>
<div> </div>
<div>The no-manual intervention is a precanned configuration for known system enviroments (like a QA lab or marketing demo) that turns the machine into an appliance.</div>
<div> </div>
<div>We have several applications on the box that all require (for example) the same sql authentication. Rather than have the user type it once (or several times) we use precanned setup scripts or puppet.</div>
<div> </div>
<div>You are right, I can add an init.d/foo that looks at /proc/cmdline.  I just thought that I'd try to reuse kickstart for that functionality. Kickstart provided most of what I needed like network setup and authentication setup. 
</div>
<div> </div>
<div>thanks,</div><span class="sg">
<div>jon</div></span>
<div><span class="e" id="q_1150aa34b898afa2_2">
<div><br> </div></span></div><br><br>
<div><span class="gmail_quote">On 9/15/07, <b class="gmail_sendername">Douglas McClendon</b> <<a href="mailto:dmc.fedora@filteredperception.org">dmc.fedora@filteredperception.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Jon Steer wrote:<br>> I have built a console-based LAMP LiveCD appliance. We use VMs to host the<br>> liveCD during the testing process.
<br>><br>> We'd like to be able to specify a kickstart file on the boot line that would<br>> cause either puppet to run or other dynamic configuration tasks to occur<br>> without manual intervention.<br><br>
This seems like it's just a matter of adding a new custom service to<br>/etc/rc.d/init.d/ which would do something with /proc/cmdline.  Take a<br>look at how the current /etc/rc.d/init.d/fedora-live generated in the<br>
%post of the standard livecd-fedora-base-desktop.ks, deals with the<br>possible liveimg argument that might be in /proc/cmdline.<br><br>You could easily enough cause stuff to happen there (after fedora user<br>is added), including something like (this is untested, just idea fodder,
<br>most likely missing quite a few needed things)-<br><br>kickstart=$( cat /proc/cmdline | \<br>             sed -e 's/\s/\n/g' | \<br>             grep "^ks" | \<br>             sed -e 's/ks=//' )
<br>if [ "x${kickstart}" != "x" ]; then<br>    mkdir -p /home/fedora/.config/autostart<br>    cat <<EOF > /home/fedora/.config/autostart/kabluiprogs.desktop<br>[Desktop Entry]<br>Name=No name<br>
Encoding=UTF-8<br>Version=1.0<br>Exec=/usr/bin/handlekickstart<br>EOF<br><br>    cat <<EOF > /usr/sbin/handlekickstart<br>#!/bin/bash<br>/usr/sbin/anaconda --kickstart=$kickstart<br>EOF<br>chmod +x /usr/bin/handlekickstart
<br><br>cp -a /etc/pam.d/liveinst /etc/pam.d/handlekickstart<br>ln -s consolehelper /usr/bin/handlekickstart<br><br><br>><br>> On normal bootup of the liveCD, we would expect manual intervention.<br><br>Not sure what you mean by this, or really if what I suggested above was
<br>the sort of thing you had in mind.<br><br>-dmc<br><br><br>--<br>Fedora-livecd-list mailing list<br><a href="mailto:Fedora-livecd-list@redhat.com">Fedora-livecd-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-livecd-list">
https://www.redhat.com/mailman/listinfo/fedora-livecd-list</a><br></blockquote></div><br><br clear="all"><br>-- <br>"Don't stand still, if you see me running down the road, 'cause there is trouble right behind me".