Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #System language
- lang en_US
- #Language modules to install
- langsupport en_US de_DE
- #System keyboard
- keyboard de-latin1-nodeadkeys
- #System mouse
- mouse
- #System timezone
- timezone Europe/Berlin
- #Root password
- rootpw --disabled
- #Initial user
- #U: foo - P: foobar
- user camel --fullname "youruser" --password yourunencrypteddefaultpassword
- #Reboot after installation
- reboot
- #Use text mode install
- text
- #Install OS instead of upgrade
- install
- network
- # Use Web installation
- # give the apt-cacher-ng url here or a mirror address
- url --url http://192.168.1.51:3142/ubuntu
- #Disk partitioning information
- zerombr yes
- bootloader --location=mbr
- clearpart --initlabel --drives=sda
- part /boot --fstype=ext4 --size=256 --asprimary
- part pv.01 --size=1 --grow --asprimary
- volgroup vgroot pv.01
- logvol swap --fstype=swap --name=lvswap --vgname=vgroot --size=512
- logvol /home --fstype=ext4 --name=lvhome --vgname=vgroot --size=512
- logvol /usr --fstype=ext4 --name=lvusr --vgname=vgroot --size=2048
- logvol /var --fstype=ext4 --name=lvvar --vgname=vgroot --size=2048
- logvol / --fstype=ext4 --name=lvroot --vgname=vgroot --size=1 --grow
- # hack around Ubuntu kickstart bugs
- # preseed partman-lvm/confirm_nooverwrite boolean true
- # preseed partman-auto-lvm/no_boot boolean true
- preseed partman-lvm/confirm_nooverwrite boolean true
- preseed partman-lvm/confirm boolean true
- preseed partman-partitioning/confirm_write_new_label boolean true
- preseed partman/choose_partition select Finish
- preseed partman/confirm_nooverwrite boolean true
- preseed partman/confirm boolean true
- #System authorization information
- authconfig --passalgo=sha512 --kickstart.
- #Network information
- network --bootproto=dhcp --device=eth0
- #Firewall configuration
- firewall --disabled
- #Do not configure the X Window System
- skipx
- %packages
- ubuntu-minimal
- openssh-server
- vim-nox
- build-essential
- iscsitarget
- open-iscsi
- ocfs2-tools
- ocfs2console
- ntp
- %pre
- %post
- exec < /dev/tty4 > /dev/tty4
- chvt 4
- echo
- echo "##############################"
- echo "# Running Post Configuration #"
- echo "##############################"
- # grub-install /dev/sda
- # update-grub
- # -- start of 'update fstab for the root partition for extended ACLs' --
- #
- # perl -pi -e 's/(ext4 errors=remount-ro 0 1)/ext4 acl,errors=remount-ro 0 1/' /etc/fstab
- #
- # -- end of 'update fstab for the root partition for extended ACLs' --
- #
- # -- start of 'install paravirt kernel image' --
- # apt-get install -f -y linux-virtual
- # dpkg -l | grep generic | grep linux | awk '{print $2}' | xargs apt-get remove -y
- #
- # -- end of 'install paravirt kernel image' --
- #
- # -- start of mpt-status removal --
- # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685618
- #
- # apt-get remove -yq --purge mpt-status
- #
- # -- end of mpt-status removal --
- #
- chvt 1
- #
- # -- end of kickstart --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement