lang en_US.UTF-8 keyboard us timezone US/Central auth --useshadow --enablemd5 selinux --enforcing firewall --disabled repo --name=d7 --baseurl=http://hb.us.dell.com/pub/fedora/linux/releases/7/Everything/i386/os xconfig --startxonboot services --enabled=NetworkManager,dhcdbd --disabled=network,sshd %packages @gnome-desktop @base-x which gdm system-config-display emacs hardlink pci_firmware* system_bios* firmware-addon-dell %post echo "running hardlink" # This saves ~150MB, but must use -c option! /usr/sbin/hardlink -v -c /usr/share/firmware cat > /etc/yum.repos.d/dell.repo << EOF [fwupdate] name=Firmware updates #baseurl=http://linux.dell.com/repo/firmware/cross-distro mirrorlist=http://linux.dell.com/repo/firmware/mirrors.pl?dellsysidpluginver=$dellsysidpluginver enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fwupdate [dell-software] name=Dell Software mirrorlist=http://linux.dell.com/repo/software/mirrors.pl?osname=fc$releasever&basearch=$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dell file:///etc/pki/rpm-gpg/RPM-GPG-KEY-libsmbios # FIXME: it'd be better to get this installed from a package cat > /etc/rc.d/init.d/fwupdate-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 cat >> /etc/X11/xorg.conf << EOXORG Section "ServerFlags" Option "AIGLX" "off" EndSection EOXORG # unmute sound card exists alsaunmute 0 2> /dev/null # add dell user with no passwd useradd -m -c "dell" dell passwd -d dell > /dev/null # 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 # 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 chkconfig --level 345 crond off chkconfig --level 345 atd off chkconfig --level 345 anacron off chkconfig --level 345 readahead_early off chkconfig --level 345 readahead_later off chkconfig --level 345 bluetooth off chkconfig --level 345 pcscd off chkconfig --level 345 netfs off chkconfig --level 345 cups off # Stopgap fix for RH #217966; should be fixed in HAL instead touch /media/.hal-mtab EOF chmod 755 /etc/rc.d/init.d/fwupdate-live /sbin/restorecon /etc/rc.d/init.d/fwupdate-live /sbin/chkconfig --add fwupdate-live # save a little bit of space at least... rm -f /boot/initrd*