#version=F9 repo --name=development --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch # Firewall configuration firewall --disabled # X Window System configuration information xconfig --startxonboot # System authorization information auth --useshadow --enablemd5 # System keyboard keyboard us # System language lang en_US.UTF-8 # SELinux configuration selinux --enforcing # System services services --disabled=network,sshd --enabled=NetworkManager # System timezone timezone US/Eastern # Disk partitioning information part / --size=4096 --bytes-per-inode=4096 %post # 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 # read some variables out of /proc/cmdline for o in \`cat /proc/cmdline\` ; do case \$o in ks=*) ks="\${o#ks=}" ;; xdriver=*) xdriver="--set-driver=\${o#xdriver=}" ;; esac done # if liveinst or textinst is given, start anaconda if strstr "\`cat /proc/cmdline\`" liveinst ; then /usr/sbin/liveinst \$ks fi if strstr "\`cat /proc/cmdline\`" textinst ; then /usr/sbin/liveinst --text \$ks fi # enable swaps unless requested otherwise swaps=\`blkid -t TYPE=swap -o device\` if ! strstr "\`cat /proc/cmdline\`" noswap -a [ -n "\$swaps" ] ; then for s in \$swaps ; do action "Enabling swap partition \$s" swapon \$s done fi # configure X, allowing user to override xdriver exists system-config-display --noui --reconfig --set-depth=24 \$xdriver # add fedora user with no passwd useradd -c "Fedora Live" fedora passwd -d fedora > /dev/null # 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 2>/dev/null # don't start cron/at as they tend to spawn things which are # disk intensive that are painful on a live image chkconfig --level 345 crond off 2>/dev/null chkconfig --level 345 atd off 2>/dev/null chkconfig --level 345 anacron off 2>/dev/null chkconfig --level 345 readahead_early off 2>/dev/null chkconfig --level 345 readahead_later off 2>/dev/null # Stopgap fix for RH #217966; should be fixed in HAL instead touch /media/.hal-mtab # workaround clock syncing on shutdown that we don't want (#297421) sed -i -e 's/hwclock/no-such-hwclock/g' /etc/rc.d/init.d/halt EOF # workaround avahi segfault (#279301) touch /etc/resolv.conf /sbin/restorecon /etc/resolv.conf chmod 755 /etc/rc.d/init.d/fedora-live /sbin/restorecon /etc/rc.d/init.d/fedora-live /sbin/chkconfig --add fedora-live # save a little bit of space at least... rm -f /boot/initrd* # make sure there aren't core files lying around rm -f /core* %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 # only works on x86, x86_64 if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS fi %end %post # xfce configuration # create /etc/sysconfig/desktop (needed for installation) cat > /etc/sysconfig/desktop <> /etc/rc.d/init.d/fedora-live << EOF # 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]\nTimedLoginEnable=true\nTimedLogin=fedora\nTimedLoginDelay=60/' /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 # make fedora user use Xfce #echo "startxfce4" > /home/fedora/.Xclients #chmod a+x /home/fedora/.Xclients #chown fedora:fedora /home/fedora/.Xclients #EOF %end %packages @base-x @base @core @fonts @admin-tools @dial-up @hardware-support @printing @java @xfce-desktop firefox isomd5sum irssi totem xfce4-quicklauncher-plugin xfce4-battery-plugin mutt mirage xfce4-sensors-plugin xfwm4-themes cups-pdf abiword geany xfce4-smartbookmark-plugin xfce4-verve-plugin xfce4-datetime-plugin xfce4-systemload-plugin gtk-xfce-engine bluez-gnome gnome-packagekit thunar-volman xfce4-genmon-plugin xfce4-places-plugin xfce4-timer-plugin xdg-user-dirs xfce4-cpugraph-plugin xfce4-mount-plugin gnome-keyring transmission xfce4-notes-plugin quodlibet NetworkManager-vpnc system-config-printer xfce4-weather-plugin xfce4-xkb-plugin thunar-media-tags-plugin xfce4-volstatus-icon orca kernel tracker-search-tool anaconda gnome-power-manager gnumeric brasero alsa-plugins-pulseaudio xfce4-websearch-plugin scim-chewing inkscape gimp xfce4-dict-plugin galculator xfce4-screenshooter-plugin NetworkManager-gnome claws-mail xfce4-fsguard-plugin pidgin yum-utils totem-mozplugin drivel xfce4-netload-plugin memtest86+ wget xarchiver xfce4-eyes-plugin xfce4-taskmanager gftp gnome-screensaver scim-pinyin xfce4-clipman-plugin NetworkManager-openvpn powertop epdfview xfce4-diskperf-plugin orage thunar-archive-plugin -nss_db -ql23xx-firmware -a2ps -evince -sox -hpijs -ccid -mpage -*debuginfo -sane-backends -esc -dejavu-fonts -compat* -man-pages-* -samba-client -dasher -specspo -ql2400-firmware -scim-lang-chinese -vorbis-tools -ql2200-firmware -dejavu-fonts-experimental -sendmail -pinfo -scim-tables-* -xfprint -xsane -pirut -coolkey -xsane-gimp -aspell-* -hplip -gimp-help -ql2100-firmware -redhat-lsb -autofs -wqy-bitmap-fonts %end