Jon Steer wrote:
I have built a console-based LAMP LiveCD appliance. We use VMs to host the
liveCD during the testing process.
We'd like to be able to specify a kickstart file on the boot line that would
cause either puppet to run or other dynamic configuration tasks to occur
without manual intervention.
This seems like it's just a matter of adding a new custom service to
/etc/rc.d/init.d/ which would do something with /proc/cmdline. Take a
look at how the current /etc/rc.d/init.d/fedora-live generated in the
%post of the standard livecd-fedora-base-desktop.ks, deals with the
possible liveimg argument that might be in /proc/cmdline.
You could easily enough cause stuff to happen there (after fedora user
is added), including something like (this is untested, just idea fodder,
most likely missing quite a few needed things)-
kickstart=$( cat /proc/cmdline | \
sed -e 's/\s/\n/g' | \
grep "^ks" | \
sed -e 's/ks=//' )
if [ "x${kickstart}" != "x" ]; then
mkdir -p /home/fedora/.config/autostart
cat <<EOF > /home/fedora/.config/autostart/kabluiprogs.desktop
[Desktop Entry]
Name=No name
Encoding=UTF-8
Version=1.0
Exec=/usr/bin/handlekickstart
EOF
cat <<EOF > /usr/sbin/handlekickstart
#!/bin/bash
/usr/sbin/anaconda --kickstart=$kickstart
EOF
chmod +x /usr/bin/handlekickstart
cp -a /etc/pam.d/liveinst /etc/pam.d/handlekickstart
ln -s consolehelper /usr/bin/handlekickstart
On normal bootup of the liveCD, we would expect manual intervention.
Not sure what you mean by this, or really if what I suggested above was
the sort of thing you had in mind.
-dmc
--
Fedora-livecd-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list