lang en_US.UTF-8 keyboard us timezone US/Eastern auth --useshadow --enablemd5 selinux --disabled firewall --disabled #xconfig --startxonboot services --disabled=network,sshd bootloader --timeout=1 --append="acpi=force" part / --size 1000 --fstype ext3 --ondisk sda part /boot --size 300 --fstype ext3 --ondisk sda repo --name=sugarreleased --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-9&arch=i386 --excludepkgs=*xulrunner* repo --name=sugarupdates --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f9&arch=i386 --excludepkgs=*xulrunner* repo --name=sugar --baseurl=http://dev.laptop.org/pub/sugar/fedora %packages # Base system kernel xorg-x11-server-Xorg xorg-x11-drivers dejavu-fonts dbus-x11 openssh gdm # Sugar sugar sugar-artwork # Platform hulahop gstreamer-python gnome-python2-gnomevfs sugar-evince-python pygtksourceview vte # Tools rpm mesa-dri-drivers vim-minimal lokkit # FIXME python-json %end %post cat >> /etc/X11/xorg.conf << FOE Section "ServerLayout" Identifier "single head configuration" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection Section "Monitor" Identifier "Monitor0" ModelName "Monitor 1024x768" HorizSync 31.5 - 61.0 VertRefresh 50.0 - 75.0 Option "dpms" EndSection Section "Device" Identifier "Videocard0" Driver "cirrus" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "640x480" EndSubSection EndSection FOE /sbin/chkconfig --level 345 firstboot off /sbin/chkconfig --level 345 yum-updatesd off gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string /apps/gnome-packagekit/frequency_get_updates never gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string /apps/gnome-packagekit/frequency_refresh_cache never gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-packagekit/notify_available false /usr/sbin/useradd -c "Fedora Live" fedora /usr/bin/passwd -d fedora > /dev/null mkdir -p /home/fedora/.config/autostart #echo "X-GNOME-Autostart-enabled=false" >> /home/fedora/.config/autostart/gpk-update-icon.desktop #chown -R fedora:fedora /home/fedora/.config echo "disable=0" >| /proc/mtrr touch /media/.hal-mtab sed -i -e 's/hwclock/no-such-hwclock/g' /etc/rc.d/init.d/halt #cat >> /etc/gdm/custom.conf << FOE #[daemon] #TimedLoginEnable=true #TimedLogin=fedora #TimedLoginDelay=60 #FOE # workaround avahi segfault (#279301) touch /etc/resolv.conf # work around for poor key import UI in PackageKit rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora %end %post --nochroot cp $INSTALL_ROOT/usr/share/doc/*-release-*/GPL $LIVE_ROOT/GPL cp $INSTALL_ROOT/usr/share/doc/HTML/readme-live-image/en_US/readme-live-image-en_US.txt $LIVE_ROOT/README # Install activities ACTIVITIES_TMPDIR=`mktemp -t -d activities.XXXXXXXXXX` || exit 1 pushd $ACTIVITIES_TMPDIR wget --no-verbose -rnH -np -A xo -nd http://dev.laptop.org/pub/sugar/fedora/activities/ popd mkdir -p $INSTALL_ROOT/usr/share/sugar/activities for act in Journal Browse Calculate Chat Pippy Read Terminal ; do install_file=`/bin/ls $ACTIVITIES_TMPDIR | grep "^${act}[-_].*\.xo" | sort -t/ -k1.$((${#act} + 2)) -n | tail -1` if [ -z "$install_file" ] ; then echo "No activity matches $act" else echo "Installing $act from file $install_file" unzip -q -o "$ACTIVITIES_TMPDIR/$install_file" -d $INSTALL_ROOT/usr/share/sugar/activities fi done rm -rf "$ACTIVITIES_TMPDIR"