############################################################################## # # Example KickStart file for SLC6 installations # # Important note: this file is intended as an example only, and users are # expected to tailor it to their needs. In particular, users should: # - review the partition table # - set an encrypted root password # - for 32-bit installations, replace the occurences of "x86_64" by "i386" # # To upload the Kickstart file to the AIMS installation service, run: # # /usr/bin/aims2client addhost --hostname --kickstart kickstart-example.ks --kopts "text network ks ksdevice=bootif latefcload" --pxe --name slc6X_x86_64 # ############################################################################## # Text mode or graphical mode? text # Install or upgrade? install # installation path url --url=http://192.168.1.1/cobbler/ks_mirror/sl6.6-x86_64 lang en_US.UTF-8 keyboard us network --onboot yes --bootproto dhcp --device eth0 #rootpw --iscrypted $1$J5mWynPX$9F5NBddsTOrqBW4i3zwiH/ rootpw --iscrypted $a1KKyj16dJLQ firewall --service=ssh authconfig --enableshadow --passalgo=sha512 selinux --disabled timezone --utc America/Vancouver bootloader --location=mbr --driveorder=vda --append=" rhgb crashkernel=auto quiet" # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work # clearpart --all --drives=vda,sdb clearpart --all --drives=vda part /boot --ondisk=vda --fstype=ext4 --size=500 --label=boot part pv.1 --ondisk=vda --grow --size=1 --label=root volgroup vg_root --pesize=4096 pv.1 logvol / --fstype=ext4 --name=lv_root --vgname=vg_root --grow --size=5000 #logvol swap --name=lv_swap --vgname=vg_root --size=26208 #part pv.2 --ondisk=vda --grow --size=1 #volgroup vg_data --pesize=16384 pv.2 # XWindows configuration information xconfig --startxonboot # repo --name="Scientific Linux" --baseurl=http://192.168.1.1/cobbler/ks_mirror/sl6.6-x86_64 # $SNIPPET('network_config') reboot %pre $SNIPPET('kickstart_start') $SNIPPET('pre_install_network_config') parted -s /dev/vda mklabel gpt parted -s /dev/sdb mklabel gpt %packages # Use package groups from "Software Development Workstation (CERN Recommended Setup)" # as defined in /afs/cern.ch/project/linux/cern/slc6X/i386/build/product.img/installclasses/slc.py # @ base @ core @ remote-desktop-clients %post $SNIPPET('kickstart_done') $SNIPPET('post_install_network_config') mkdir -p /root/.ssh chmod 0700 /root/.ssh touch /root/.ssh/authorized_keys chmod 0600 /root/.ssh/authorized_keys # echo 'uncomment_this_command_and_replace_this_text_with_your_public_key' >> /root/.ssh/authorized_keys