lang en_US.UTF-8 keyboard us timezone US/Central auth --useshadow --enablemd5 selinux --enforcing firewall --disabled repo --name=firmware --baseurl=http://linux.dell.com/repo/firmware/cross-distro repo --name=dellsw --baseurl=http://linux.dell.com/repo/software/el5/i386 repo --name=dellhw --baseurl=http://linux.dell.com/repo/hardware/latest/pe2900/rh50 repo --name=base --baseurl=http://mirrors.kernel.org/centos/5/os/i386/ repo --name=update --baseurl=http://mirrors.kernel.org/centos/5/updates/i386/ repo --name=addons --baseurl=http://mirrors.kernel.org/centos/5/addons/i386/ repo --name=extras --baseurl=http://mirrors.kernel.org/centos/5/extras/i386/ xconfig --startxonboot services --enabled=NetworkManager,dhcdbd --disabled=network,sshd %packages @gnome-desktop @base-x selinux-policy-targeted selinux-policy openssh-clients sudo syslinux which gdm system-config-display system-config-securitylevel emacs hardlink perl firmware-tools firmware-addon-dell srvadmin-all net-snmp procmail firefox # dictionaries are big -aspell-* -m17n-db-* -man-pages-* # gimp help is huge -gimp-help # lose the compat stuff -compat* # space sucks -gnome-user-docs -specspo -esc -samba-client -a2ps -vino -sox -festival -gnome-speech -gok -httpd -gnome-user-share -poppler -cyrus-sasl -gphoto2 -opensp -yelp # X servers that are unnecessary on Dell hardware -xorg-x11-drivers xorg-x11-drv-ati xorg-x11-drv-evdev xorg-x11-drv-fbdev xorg-x11-drv-fpit xorg-x11-drv-glint xorg-x11-drv-i128 xorg-x11-drv-i740 xorg-x11-drv-i810 xorg-x11-drv-joystick xorg-x11-drv-keyboard xorg-x11-drv-magictouch xorg-x11-drv-microtouch xorg-x11-drv-mouse xorg-x11-drv-mutouch xorg-x11-drv-nv xorg-x11-drv-vesa xorg-x11-drv-vga xorg-x11-drv-vmmouse xorg-x11-drv-vmware xorg-x11-drv-void # smartcards won't really work on the livecd. and we _need_ space -coolkey -ccid # duplicate functionality -pinfo -vorbis-tools -wget # scanning takes quite a bit of space :/ -xsane -xsane-gimp # while hplip requires pyqt, it has to go -hplip evince # livecd bits to set up the livecd and be able to install anaconda anaconda-runtime # make sure debuginfo doesn't end up on the live image -*debuginfo- -*-devel %post # because OMSA packages may not be installed in the right order /sbin/ldconfig 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 [dell-firmware] name=dell-firmware baseurl=http://linux.dell.com/repo/firmware/cross-distro enabled=1 gpgcheck=1 gpgkey=http://linux.dell.com/repo/firmware/RPM-GPG-KEY-fwupdate http://linux.dell.com/repo/software/RPM-GPG-KEY-dell http://linux.dell.com/repo/software/RPM-GPG-KEY-libsmbios [dell-software] name=dell-software baseurl=http://linux.dell.com/repo/software/el5/i386 enabled=1 gpgcheck=1 gpgkey=http://linux.dell.com/repo/software/RPM-GPG-KEY-dell http://linux.dell.com/repo/software/RPM-GPG-KEY-libsmbios [dell-hardware] name=dell-hardware baseurl=http://linux.dell.com/repo/hardware/latest/pe2950/el5.i386/ enabled=1 gpgcheck=1 gpgkey=http://linux.dell.com/repo/software/RPM-GPG-KEY-dell http://linux.dell.com/repo/software/RPM-GPG-KEY-libsmbios EOF # 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* # add user dell to group wheel perl -p -i -e 's/wheel:x:10:root/wheel:x:10:root,dell/' /etc/group cat >> /etc/sudoers << EOF %wheel ALL=(ALL) NOPASSWD: ALL EOF # make GDM auto-login user 'dell' cat > /etc/gdm/custom.conf << EOF [daemon] AutomaticLoginEnable=true AutomaticLogin=dell [security] [xdmcp] [gui] [greeter] Include=dell [chooser] [debug] [servers] EOF