[Ubuntu Server 14.04] Preseed.cfg Localization issues

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

  • Snors
  • Registratie: Oktober 2007
  • Laatst online: 11-08 12:42
Allen,

Ik ben aan het knoeien geweest om een Ubuntu Server 14.04 fully unattended te maken d.m.v. de preseed methode. Het overgrote gedeelte van de preseed file / automation werkt na behoren. Ik ondervind alleen problemen om ook de localization & keyboard vragen van een automatisch antwoord te voorzien. Zie hieronder mijn preseed.cfg waar de installatie gebruik van maakt:

code:
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
#### Contents of the preconfiguration file (for squeeze)
### Localization
# Preseeding only locale sets language, country and locale.
#d-i debian-installer/locale string en_US

# The values can also be preseeded individually for greater flexibility.
d-i debian-installer/language string en
d-i debian-installer/country string NL
d-i debian-installer/locale string en_GB.UTF-8

# Keyboard selection.
# Disable automatic (interactive) keymap detection.
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us

### Network configuration
# netcfg will choose an interface that has link if possible. This makes it
# skip displaying a list if there is more than one interface.
d-i netcfg/choose_interface select auto

# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain

# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string

# If non-free firmware is needed for the network or other hardware, you can
# configure the installer to always try to load it, without prompting. Or
# change to false to disable asking.
d-i hw-detect/load_firmware boolean true

### Mirror settings
# If you select ftp, the mirror/country string does not need to be set.
#d-i mirror/protocol string ftp
d-i mirror/country string nl
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string

# Alternatively: by default, the installer uses CC.archive.ubuntu.com where
# CC is the ISO-3166-2 code for the selected country. You can preseed this
# so that it does so without asking.
d-i mirror/http/mirror select nl.archive.ubuntu.com

### Clock and time zone setup
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true

# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string Europe/Amsterdam

# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
# NTP server to use. The default is almost always fine here.
d-i clock-setup/ntp-server string 0.nl.pool.ntp.org

### Partitioning
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-auto-lvm/new_vg_name string rootvg
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-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select atomic
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/mount_style select uuid
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-pc/install_devices multiselect /dev/sda

# The kernel image (meta) package to be installed; "none" can be used if no
# kernel is to be installed.
d-i base-installer/kernel/image string linux-generic

# To create a normal user account.
d-i passwd/user-fullname string test
d-i passwd/username string test
# Normal user's password, either in clear text
d-i passwd/user-password password test
d-i passwd/user-password-again password test
d-i user-setup/allow-password-weak boolean true

# The user account will be added to some standard initial groups. To
# override that, use this.
d-i passwd/user-default-groups string audio video

# Set to true if you want to encrypt the first user's home directory.
d-i user-setup/encrypt-home boolean false

### Package selection
tasksel tasksel/first multiselect minimal

# 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 unattended-upgrades

# This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true

# This one makes grub-installer install to the MBR if it also finds some other
# OS, which is less safe as it might not be able to boot that other OS.
d-i grub-installer/with_other_os boolean true

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

### X configuration
# X can detect the right driver for some cards, but if you're preseeding,
# you override whatever it chooses. Still, vesa will work most places.
xserver-xorg xserver-xorg/config/device/driver select intel

#### Advanced options
### Running custom commands during the installation
d-i preseed/late_command string \
    in-target wget -O /root/installscript.sh "https://URL"; \
    in-target chmod +x /root/installscript.sh; \
    in-target /bin/bash /root/installscript.sh


Het dikgedrukte gedeelte pakt de installer niet op. Heeft iemand enig idee wat ik hier fout doe? Ik heb al verschillende oplossingen geprobeerd. Waaronder verschillende soorten iso's(NETINSTALL etc.). Ik maak op dit moment gebruik van de volledige Ubuntu Server iso http://www.ubuntu.com/download/server

Alvast bedankt! _/-\o_ _/-\o_

Acties:
  • 0 Henk 'm!

  • Hero of Time
  • Registratie: Oktober 2004
  • Laatst online: 01-10 21:30

Hero of Time

Moderator LNX

There is only one Legend

Welk dikgedrukte gedeelte? Er wordt geen markup toegepast in [code] blocks. Bedoel je regels 7, 8 en 9? Enige logging dat je kan achterhalen?

Commandline FTW | Tweakt met mate


Acties:
  • 0 Henk 'm!

  • Snors
  • Registratie: Oktober 2007
  • Laatst online: 11-08 12:42
Hero of Time schreef op maandag 07 juli 2014 @ 11:36:
Welk dikgedrukte gedeelte? Er wordt geen markup toegepast in [code] blocks. Bedoel je regels 7, 8 en 9? Enige logging dat je kan achterhalen?
Excuses, zie het nu ook inderdaad. Het gaat om regel 4 t/m 14. Localization & Keyboard settings pakt de installer niet op. Preseed genereert helaas geen logfile / heeft de mogelijkheid niet om een te genereren.

Acties:
  • 0 Henk 'm!

  • Hero of Time
  • Registratie: Oktober 2004
  • Laatst online: 01-10 21:30

Hero of Time

Moderator LNX

There is only one Legend

Je moet 't nu handmatig invullen voordat de installatie verder gaat? Dan kan je toch simpelweg naar een TTY schakelen en de scrollbackbuffer (voor zover mogelijk) uitlezen?

Commandline FTW | Tweakt met mate


Acties:
  • 0 Henk 'm!

  • Snors
  • Registratie: Oktober 2007
  • Laatst online: 11-08 12:42
Het lijkt opgelost. Blijft altijd knutselen met Ubuntu. Wat ik heb gedaan is de localization settings meegegeven in de boot parameters van de image (isolinux/txt.cfg).

Thanks voor het meedenken!

Acties:
  • 0 Henk 'm!

  • deadinspace
  • Registratie: Juni 2001
  • Laatst online: 01-10 08:15

deadinspace

The what goes where now?

Snors schreef op maandag 07 juli 2014 @ 16:27:
Het lijkt opgelost. Blijft altijd knutselen met Ubuntu.
Dit is gewoon gedocumenteerd hoor ;)

https://help.ubuntu.com/1...e/i386/preseed-intro.html:
Obviously, any questions that have been processed before the preconfiguration file is loaded cannot be preseeded (this will include questions that are only displayed at medium or low priority, like the first hardware detection run). the section called “Using boot parameters to preseed questions” offers a way to avoid these questions being asked.

In order to avoid the questions that would normally appear before the preseeding occurs, you can start the installer in “auto” mode. This delays questions that would normally be asked too early for preseeding (i.e. language, country and keyboard selection) until after the network comes up, thus allowing them to be preseeded. It also runs the installation at critical priority, which avoids many unimportant questions. See the section called “Auto mode” for details.
Pagina: 1