diff options
Diffstat (limited to '10-fedora-livecd-base.conf')
-rwxr-xr-x | 10-fedora-livecd-base.conf | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/10-fedora-livecd-base.conf b/10-fedora-livecd-base.conf new file mode 100755 index 0000000..3e3f207 --- /dev/null +++ b/10-fedora-livecd-base.conf @@ -0,0 +1,95 @@ +#!/bin/bash + +# livecd configuration for Base Fedora system + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +case $1 in + # inquire what packages to install; prints package list on stdout + pkgadd) + echo " +bash +kernel +passwd +shadow-utils +rpm +yum +openssh-clients +rsync +tree +wget +man +rootfiles +dhclient +cpuspeed +fedora-logos +file +tree +selinux-policy +selinux-policy-targeted +grub +sudo +" + ;; + + # run configuration scripts when all packages are installed + post) + mkdir -p /etc/sysconfig + + cat <<EOF > /etc/sysconfig/clock +ZONE="America/New_York" +UTC=true +ARC=false +EOF + + cat <<EOF > /etc/sysconfig/network +NETWORKING=yes +HOSTNAME=localhost.localdomain +EOF + + cat <<EOF > /etc/resolv.conf +EOF + + cat <<EOF > /etc/hosts +# Do not remove the following line, or various programs +# that require network functionality will fail. +127.0.0.1 localhost.localdomain localhost +::1 localhost.localdomain localhost +EOF + + cat <<EOF > /etc/sysconfig/i18n +LANG="en_US.UTF-8" +EOF + + cat <<EOF > /etc/sysconfig/keyboard +KEYBOARDTYPE="pc" +KEYTABLE="us" +EOF + pwconv + passwd -d root + ;; + + # run when an livecd install is complete to clean up + install-post) + ;; + + # run when an livecd install is complete; must prints packages to remove + install-pkgrem) +echo " +fedora-livecd +" + ;; +esac |