Rahul Sundaram wrote:
Alan Pevec wrote:
yes, sorry if I wasn't clear, only backports go to EPEL CVS

OK. Great. I am working remotely for a while without access to a EL system and I am running rawhide on my laptop for quite sometime. The connection is decent but not enough to start downloading new complete images easily so can't really test this at the moment but you can go ahead and commit those changes if you (or others) have tested that the following works correctly:

* Create a live cd image
* Use livecd-iso-to-disk script to convert the image into a bootable live USB
* image-creator creates a ext3 image


I executed the first 2 using the attached kickstart file. I got a few warnings at boot up, but the images do work. Note.. the second one I did running the livecd-iso-to-disk from an F9 machine.

Rahul.. what do you normally do for #3?

-- bk

xconfig --startxonboot
timezone  America/New_York
selinux --disable
# Add an rhx repo and an updates repo
repo --name=epel 
--baseurl=http://download.fedora.redhat.com/pub/epel/5Server/i386/
repo --name=rhelWS 
--baseurl=http://porkchop.devel.redhat.com/released/RHEL-5-Client/U2/i386/os/Workstation/
repo --name=rhelclient 
--baseurl=http://porkchop.devel.redhat.com/released/RHEL-5-Client/U2/i386/os/Client/
repo --name=rhelt 
--baseurl=http://porkchop.devel.redhat.com/released/RHEL-5-Client/U2/i386/os/VT/

%packages
@gnome-desktop
@base-x
@base
@core
@admin-tools
@dial-up
@hardware-support
@printing
-selinux-*
-gphoto2
-kpartx
-firstboot
-firstboot-tui
-system-config-lvm
-rhn-*
-vnc-server
-nautilus-cd-burner
-yum-rhn-plugin
-festival-*

%post
# Make a pretty login page
cp /opt/liveDVD/background.jpg 
/usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg

# In the live cd, this is done in the init.d file
# FIXME: it'd be better to get this installed from a package
cat > /etc/rc.d/init.d/fedora-live << EOF
#!/bin/bash
#
# live: Init script for live image
#
# chkconfig: 345 00 99
# description: Init script for live image.

. /etc/init.d/functions

if ! strstr "\`cat /proc/cmdline\`" liveimg || [ "\$1" != "start" ] || [ -e 
/.liveimg-configured ] ; then
    exit 0
fi

exists() {
    which \$1 >/dev/null 2>&1 || return
    \$*
}

touch /.liveimg-configured

# mount live image
if [ -b /dev/live ]; then
   mkdir -p /mnt/live
   mount -o ro /dev/live /mnt/live
fi

# configure X
exists system-config-display --noui --reconfig --set-depth=24

# unmute sound card
exists alsaunmute 0 2> /dev/null

# add notes user with no passwd
useradd -c "Live Demo" liveuser
passwd -d liveuser > /dev/null
# Give notes ownership of the liveuser home dir
chown -R liveuser /home/liveuser
# disable screensaver locking
gconftool-2 --direct 
--config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool 
/apps/gnome-screensaver/lock_enabled false >/dev/null
# set up timed auto-login for after 60 seconds
sed -i -e 
's/\[daemon\]/[daemon]\nAutomaticLoginEnable=true\nAutomaticLogin=liveuser\n/' 
/etc/gdm/custom.conf
if [ -e /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png ] ; then
    cp /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png 
/home/fedora/.face
    chown fedora:fedora /home/fedora/.face
    # TODO: would be nice to get e-d-s to pick this one up too... but how?
fi
# turn off firstboot for livecd boots
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot

# don't start yum-updatesd for livecd boots
chkconfig --level 345 yum-updatesd off

# don't start cron/at as they tend to spawn things which are
# disk intensive that are painful on a live image
/sbin/chkconfig --level 345 crond off
/sbin/chkconfig --level 345 atd off
/sbin/chkconfig --level 345 anacron off
/sbin/chkconfig --level 345 readahead_early off
/sbin/chkconfig --level 345 readahead_later off

# Stopgap fix for RH #217966; should be fixed in HAL instead
touch /media/.hal-mtab
EOF

chmod 755 /etc/rc.d/init.d/fedora-live
/sbin/restorecon /etc/rc.d/init.d/fedora-live
/sbin/chkconfig --add fedora-live

# Add a little but more space
rm -rf /boot/initrd*


--
Fedora-livecd-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list

Reply via email to