Ubuntu Pastebin

Paste from error at Thu, 8 Oct 2015 17:48:26 +0000

Download as text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/variantcode string

# netcfg will choose an interface that has link if possible. This makes it
# skip displaying a list if there is more than one interface.
# set $myhostname = $getVar('hostname',$getVar('name','cobbler')).replace("_","-")
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string $myhostname

d-i hw-detect/load_firmware boolean true

# NTP/Time Setup
d-i time/zone string Asia/Jakarta
d-i clock-setup/utc boolean true
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server  string 0.id.pool.ntp.org

# Setup the installation source
d-i mirror/country string manual
d-i mirror/http/hostname string $http_server
d-i mirror/http/directory string $install_source_directory
d-i mirror/http/proxy string

#set $os_v = $getVar('os_version','')
#if $os_v and $os_v.lower()[0] > 'p'
# Required at least for 12.10+
d-i live-installer/net-image string http://$http_server/cobbler/links/$distro_name/install/filesystem.squashfs
#end if

# Suite to install.
d-i mirror/suite string trusty
d-i mirror/udeb/components multiselect main, restricted


# ------------ #
# Partitioning #
# ------------ #


# Set "lazy_itable_init = 0" in the /etc/mke2fs.conf file
# before partitioning.
d-i partman/early_command string \
    sed -rn '/ext4[[:space:]]*=[[:space:]]*\{/,/\}/p' /etc/mke2fs.conf      \
        | sed -r 's/\}/\tlazy_itable_init = 0\n\t\}/' > /tmp/ext4.conf;     \
    sed -i -rn '/ext4[[:space:]]*=[[:space:]]*\{/,/\}/!p' /etc/mke2fs.conf; \
    cat /tmp/ext4.conf >> /etc/mke2fs.conf

d-i partman-auto/disk string /dev/vda
d-i partman/aligment select optimal
d-i partman-lvm/device_remove_lvm boolean true 
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string             \
    main-disk ::                                  \
        200 600 200 ext4                          \
            $primary{ }                           \
            $bootable{ }                          \
            method{ format }                      \
            format{ }                             \
            use_filesystem{ }                     \
            filesystem{ ext4 }                    \
            mountpoint{ /boot }                   \
            options/noatime{ noatime }            \
            label{ boot }                         \
        .                                         \
        6000 10000 -1 ext4                        \
            $primary{ }                           \
            method{ format }                      \
            format{ }                             \
            use_filesystem{ }                     \
            filesystem{ ext4 }                    \
            mountpoint{ / }                       \
            options/noatime{ noatime }            \
            label{ system }                       \
        .                                         \
        100% 1000 100% linux-swap                 \
            $primary{ }                           \
            method{ swap }                        \
            format{ }                             \
        .
# This makes partman automatically partition without confirmation,
# provided that you told it what to do using one of the methods above.
d-i partman/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm_nooverwrite boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman-md/confirm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman/mount_style select uuid

# ------------- #
# Account setup #
# ------------- #

d-i passwd/root-login boolean true
# Root password, either in clear text
d-i passwd/root-password password @w@n2K11
d-i passwd/root-password-again password @w@n2K11

# To avoid a warning for weak password.
d-i user-setup/allow-password-weak boolean true

# Or encrypted using an MD5 hash.
# MD5 hash get with this: mkpasswd --method=md5 -S "go0DsAlt" root
# (the password is "root").
#d-i passwd/root-password-crypted password $1$go0DsAlt$1jQP6gcGPmy6oKvvQC7BJ.

# And better: use a SHA-512 hash with
# mkpasswd --method=sha-512 -S "l1tTleSaLt" root
#d-i passwd/root-password-crypted password $6$l1tTleSaLt$pdFghVCErOAyeKmA7ynqVjKOp61Nl/HhkBVPA3YqX79ZV/SbifJJ89lDxvP7KvEnInGd7z.Nyj8322YDLS5zN/

# No other user.
d-i passwd/make-user boolean true
d-i passwd/user-fullname string rack 
d-i passwd/username string rack 
d-i passwd/user-password password r4ck3r 
d-i passwd/user-password-again password r4ck3r 
d-i passwd/user-uid string 
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false 
d-i passwd/user-default-groups string adm cdrom dailout lpadmin plugdev 

# --------- #
# Apt setup #
# --------- #

# You can choose to install restricted and universe software, or to install
# software from the backports repository.
d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean false
d-i apt-setup/backports boolean false

# Uncomment this if you don't want to use a network mirror.
# d-i apt-setup/use_mirror boolean false

# Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string security.ubuntu.com
d-i apt-setup/security_path string /ubuntu

$SNIPPET('preseed_apt_repo_config')

# Enable deb-src lines
# d-i apt-setup/local0/source boolean true

# URL to the public key of the local repository; you must provide a key or
# apt will complain about the unauthenticated repository and so the
# sources.list line will be left commented out
# d-i apt-setup/local0/key string http://local.server/key

# ----------------- #
# Package selection #
# ----------------- #
# Policy for applying updates. May be "none" (no automatic updates),
# "unattended-upgrades" (install security updates automatically), or
# "landscape" (manage system with Landscape).
#d-i pkgsel/update-policy select none

#tasksel tasksel/first multiselect standard, web-server
#tasksel tasksel/first multiselect standard
#tasksel tasksel/first multiselect minimal

# By default the installer requires that repositories be authenticated
# using a known gpg key. This setting can be used to disable that
# authentication. Warning: Insecure, not recommended.
d-i debian-installer/allow_unauthenticated boolean true

# Individual additional packages to install
# wget is REQUIRED otherwise quite a few things won't work
# later in the build (like late-command scripts)
d-i pkgsel/include string ntp ssh wget openssh-server

# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
d-i pkgsel/upgrade select full-upgrade

# ------------ #
# Install grub #
# ------------ #

d-i grub-installer/only_debian boolean true

# Use the following option to add additional boot parameters for the
# installed system (if supported by the bootloader installer).
# Note: options passed to the installer will be added automatically.
#d-i debian-installer/add-kernel-opts string $kernel_options_post

# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note

## Figure out if we're kickstarting a system or a profile
#if $getVar('system_name','') != ''
#set $what = "system"
#else
#set $what = "profile"
#end if

# This first command is run as early as possible, just after preseeding is read.
# d-i preseed/early_command string [command]
d-i preseed/early_command string wget -O- \
   http://$http_server/cblr/svc/op/script/$what/$name/?script=preseed_early_default | \
   /bin/sh -s

# This command is run immediately before the partitioner starts. It may be
# useful to apply dynamic partitioner preseeding that depends on the state
# of the disks (which may not be visible when preseed/early_command runs).
# d-i partman/early_command \
#       string debconf-set partman-auto/disk "\$(list-devices disk | head -n1)"

# This command is run just before the install finishes, but when there is
# still a usable /target directory. You can chroot to /target and use it
# directly, or use the apt-install and in-target commands to easily install
# packages and run commands in the target system.
# d-i preseed/late_command string [command]
d-i preseed/late_command string wget -O- \
   http://$http_server/cblr/svc/op/script/$what/$name/?script=preseed_late_default | \
   chroot /target /bin/sh -s
Download as text