Advertisement
Guest User

Untitled

a guest
Apr 5th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. #System language
  2. lang en_US
  3.  
  4. #Language modules to install
  5. langsupport en_US de_DE
  6.  
  7. #System keyboard
  8. keyboard de-latin1-nodeadkeys
  9.  
  10. #System mouse
  11. mouse
  12.  
  13. #System timezone
  14. timezone Europe/Berlin
  15.  
  16. #Root password
  17. rootpw --disabled
  18.  
  19. #Initial user
  20. #U: foo - P: foobar
  21. user camel --fullname "youruser" --password yourunencrypteddefaultpassword
  22.  
  23. #Reboot after installation
  24. reboot
  25.  
  26. #Use text mode install
  27. text
  28.  
  29. #Install OS instead of upgrade
  30. install
  31.  
  32. network
  33. # Use Web installation
  34. # give the apt-cacher-ng url here or a mirror address
  35. url --url http://192.168.1.51:3142/ubuntu
  36.  
  37. #Disk partitioning information
  38. zerombr yes
  39. bootloader --location=mbr
  40. clearpart --initlabel --drives=sda
  41. part /boot --fstype=ext4 --size=256 --asprimary
  42. part pv.01 --size=1 --grow --asprimary
  43. volgroup vgroot pv.01
  44. logvol swap --fstype=swap --name=lvswap --vgname=vgroot --size=512
  45. logvol /home --fstype=ext4 --name=lvhome --vgname=vgroot --size=512
  46. logvol /usr --fstype=ext4 --name=lvusr --vgname=vgroot --size=2048
  47. logvol /var --fstype=ext4 --name=lvvar --vgname=vgroot --size=2048
  48. logvol / --fstype=ext4 --name=lvroot --vgname=vgroot --size=1 --grow
  49.  
  50. # hack around Ubuntu kickstart bugs
  51. # preseed partman-lvm/confirm_nooverwrite boolean true
  52. # preseed partman-auto-lvm/no_boot boolean true
  53.  
  54. preseed partman-lvm/confirm_nooverwrite boolean true
  55. preseed partman-lvm/confirm boolean true
  56. preseed partman-partitioning/confirm_write_new_label boolean true
  57. preseed partman/choose_partition select Finish
  58. preseed partman/confirm_nooverwrite boolean true
  59. preseed partman/confirm boolean true
  60.  
  61. #System authorization information
  62. authconfig --passalgo=sha512 --kickstart.
  63.  
  64. #Network information
  65. network --bootproto=dhcp --device=eth0
  66.  
  67. #Firewall configuration
  68. firewall --disabled
  69.  
  70. #Do not configure the X Window System
  71. skipx
  72.  
  73. %packages
  74. ubuntu-minimal
  75. openssh-server
  76. vim-nox
  77. build-essential
  78. iscsitarget
  79. open-iscsi
  80. ocfs2-tools
  81. ocfs2console
  82. ntp
  83.  
  84. %pre
  85.  
  86. %post
  87.  
  88. exec < /dev/tty4 > /dev/tty4
  89. chvt 4
  90. echo
  91. echo "##############################"
  92. echo "# Running Post Configuration #"
  93. echo "##############################"
  94.  
  95. # grub-install /dev/sda
  96. # update-grub
  97.  
  98. # -- start of 'update fstab for the root partition for extended ACLs' --
  99. #
  100. # perl -pi -e 's/(ext4 errors=remount-ro 0 1)/ext4 acl,errors=remount-ro 0 1/' /etc/fstab
  101. #
  102. # -- end of 'update fstab for the root partition for extended ACLs' --
  103. #
  104. # -- start of 'install paravirt kernel image' --
  105. # apt-get install -f -y linux-virtual
  106. # dpkg -l | grep generic | grep linux | awk '{print $2}' | xargs apt-get remove -y
  107. #
  108. # -- end of 'install paravirt kernel image' --
  109. #
  110. # -- start of mpt-status removal --
  111. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685618
  112. #
  113. # apt-get remove -yq --purge mpt-status
  114. #
  115. # -- end of mpt-status removal --
  116. #
  117. chvt 1
  118. #
  119. # -- end of kickstart --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement