Package: debian-installer
Severity: serious
Justification: pxe install
Hi,
When installing debian 10 guest on xenserver host, debian-installer will be
stuck on language selection console step. In busybox syslog shows
debconf/language is set to empty.
Oct 21 09:24:59 main-menu[239]: INFO: Menu item 'localechooser' selected
Oct 21 09:24:59 debconf: Setting debconf/language to
Oct 21 09:24:59 preseed: successfully loaded preseed file from
http://xx.xx.xx.xx/export/2682772-xenrtneofhjbt/preseed-xenrtdebian106411b35270.cfg
Oct 21 09:24:59 preseed: running preseed command preseed/early_command: tail -f
/var/log/syslog > /dev/hvc0 &
Oct 21 09:24:59 main-menu[242]: (process:876): 2019-10-21 09:24:59
URL:http://xx.xx.xx.xx/export/2682772-xenrtneofhjbt/preseed-xenrtdebian106411b35270.cfg
[2849/2849] -> "/tmp/_fetch-url_debconf-seed.891" [1]
Oct 21 09:24:59 main-menu[242]: INFO: Falling back to the package description
for brltty-udeb
Oct 21 09:24:59 main-menu[242]: INFO: Menu item 'localechooser' selected
Oct 21 09:25:00 debconf: Setting debconf/language to
Oct 21 09:29:43 main-menu[242]: INFO: Menu item 'localechooser' succeeded but
requested to be left unconfigured.
Oct 21 09:29:43 main-menu[242]: INFO: Falling back to the package description
for brltty-udeb
Oct 21 09:30:27 main-menu[242]: INFO: Menu item 'localechooser' selected
Oct 21 09:30:27 debconf: Setting debconf/language to
After disable `console=tty0` as the kernel arg in pxe cfg file. We can not see
the console installation steps, but the debian 10 install will be sucessful.
Pxe cfg and preceed file is as below:
pxe.txt
```
SERIAL 0 9600
PROMPT 1
TIMEOUT 20
DEFAULT install
LABEL install
KERNEL xenrt/2682421-xenrty9zndi0n/linux
APPEND vga=normal auto=true priority=critical interface=eth0
url=http://xx.xx.xx.xx/export/2682421-xenrth6mfd_1k/preseed-xenrtdebian10646731e612.cfg
initrd=xenrt/2682421-xenrty9zndi0n/initrd.gz console=tty0 console=hvc0
```
preseed-xenrtdebian10646731e612.cfg
```
d-i preseed/early_command string tail -f /var/log/syslog > /dev/hvc0 &
d-i debian-installer/locale string en_GB
d-i debian-installer/allow_unauthenticated string true
d-i console-keymaps-at/keymap select us
d-i keyboard-configuration/xkb-keymap select us
d-i netcfg/get_hostname string localhost
d-i netcfg/get_domain string xenrtcloud
d-i mirror/country string enter information
manually
d-imirror/country string manual
d-imirror/http/hostname string repocacher-lon.xenrt.citrite.net
d-imirror/http/directorystring /debian/
d-iapt-setup/security_host string repocacher-lon.xenrt.citrite.net
d-iapt-setup/security_path string /debian/
d-i mirror/http/proxy string
d-i mirror/udeb/suite string buster
d-i mirror/suitestring buster
d-i time/zone stringstring UTC
d-i partman-auto/disk string /dev/xvda
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe select atomic
d-i partman-lvm/device_remove_lvm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partitionselect Finish partitioning and
write changes to disk
d-i partman/confirm boolean true
d-i passwd/make-userboolean false
d-i passwd/-password-cryptedpassword
***
d-i pkgsel/include string openssh-server psmisc
ntpdate net-tools
d-i grub-installer/only_debian boolean false
d-i grub-installer/bootdev string /dev/xvda
d-i finish-install/reboot_in_progress note
d-i debian-installer/exit/poweroff boolean true
d-i apt-setup/services-select multiselect none
d-i apt-setup/cdrom/set-first boolean false
d-i apt-setup/cdrom/set-nextboolean false
d-i apt-setup/cdrom/set-failed boolean false
d-i apt-setup/use_mirrorboolean false
d-i preseed/late_command string sed -i 's/#PermitRootLogin
prohibit-password/PermitRootLogin yes/g' /target/etc/ssh/sshd_config;
/target/etc/init.d/ssh restart; sed -i 's/quiet/console=hvc0 console=tty0/g'
/target/boot/grub/grub.cfg /target/etc/default/grub;
d-i base-installer/install-recommends boolean false
popularity-contest popularity-contest/participate
boolean false
tasksel tasksel/first multiselect standard
```
Thanks,
Xihuan