Package: debian-installer Severity: Important Tags: main-menu Hi, I was using pxe to install debian buster guest on xenserver and in kernel boot parameter I set 2 console parmeters as below
# Generated by XenRT SERIAL 0 9600 PROMPT 1 TIMEOUT 20 DEFAULT install LABEL install KERNEL xenrt/2705858-xenrt1vgtuzco/linux APPEND vga=normal fb=false auto=true priority=high interface=eth0 url=http://xx.xx.xx.xx/export/2705858-xenrth6vsdxd8/preseed-xenrtdebian10646c3b5e66.cfg initrd=xenrt/2705858-xenrt1vgtuzco/initrd.gz console=hvc0 console=tty0 Preseed file is configured as below #_preseed_V1 d-i preseed/early_command string tail -f /var/log/syslog > /dev/hvc0 & d-i debian-installer/language string en d-i debian-installer/country string NL d-i debian-installer/locale string en_GB.UTF-8 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/choose_interface select eth0 d-i netcfg/get_hostname string localhost d-i netcfg/get_domain string xxxxx d-i mirror/country string enter information manually d-i mirror/country string manual d-i mirror/http/hostname string xxxxxxxxxxxxxxxx d-i mirror/http/directory string /debian/ d-i apt-setup/security_host string xxxxxxxxxxxxxxxx d-i apt-setup/security_path string /debian/ d-i mirror/http/proxy string d-i mirror/udeb/suite string buster d-i mirror/suite string buster d-i time/zone string string 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_partition select Finish partitioning and write changes to disk d-i partman/confirm boolean true d-i passwd/make-user boolean false d-i passwd/****-password-crypted password xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 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-next boolean false d-i apt-setup/cdrom/set-failed boolean false d-i apt-setup/use_mirror boolean 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 The kernel command line is show as below in /var/log/syslog: Nov 4 12:55:46 kernel: [ 0.289806] Kernel command line: vga=normal fb=false auto=true priority=high interface=eth0 url=http://xx.xx.xx.xx/export/2705858-xenrtyuf645_j/preseed-xenrtdebian10646c3b5e66.cfg initrd=xenrt/2705858-xenrtncn2hqb1/initrd.gz console=hvc0 console=tty0 BOOT_IMAGE=xenrt/2705858-xenrtncn2hqb1/linux The set 2 consoles all enabled successfully, but later it will set debconf/language twice, it seems not just copy console from perferred console tty0, but just start 2 debian-installer on both consoles, it is not reasonable for one system install to start debian-installer twice, and then '/var/lib/dpkg/status', in the install enviroment I only find /var/lib/dpkg/status.bak seems like a resource competing caused lock and backup. Nov 4 12:55:46 syslogd started: BusyBox v1.30.1 Nov 4 12:55:46 kernel: klogd started: BusyBox v1.30.1 (Debian 1:1.30.1-4) Nov 4 12:55:46 kernel: [ 0.000000] Linux version 4.19.0-6-amd64 (debian-ker...@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.67-2 (2019-08-28) Nov 4 12:55:46 kernel: [ 0.000000] Command line: vga=normal fb=false auto=true priority=high interface=eth0 url=http://xx.xx.xx.xx/export/2705858-xenrtyuf645_j/preseed-xenrtdebian10646c3b5e66.cfg initrd=xenrt/2705858-xenrtncn2hqb1/initrd.gz console=hvc0 console=tty0 BOOT_IMAGE=xenrt/2705858-xenrtncn2hqb1/linux ...? Nov 4 12:55:46 kernel: [ 0.379546] Console: colour VGA+ 80x25 Nov 4 12:55:46 kernel: [ 0.562933] console [tty0] enabled Nov 4 12:55:46 kernel: [ 0.566842] console [hvc0] enabled .... Nov 4 12:55:48 reopen-console: Looking at console tty0 from /proc/consoles Nov 4 12:55:48 reopen-console: Adding tty0 to consoles list Nov 4 12:55:48 reopen-console: tty0 is preferred Nov 4 12:55:48 reopen-console: Looking at console hvc0 from /proc/consoles Nov 4 12:55:48 reopen-console: Adding hvc0 to consoles list Nov 4 12:55:48 reopen-console: Adding inittab entry for tty0 Nov 4 12:55:48 reopen-console: Adding inittab entry for hvc0 Nov 4 12:55:48 reopen-console: Restarting init to start d-i on the consoles we found Nov 4 12:55:48 init: reloading /etc/inittab Nov 4 12:55:48 init: starting pid 207, tty '/dev/tty4': '/usr/bin/tail -f /var/log/syslog' Nov 4 12:55:48 init: starting pid 208, tty '/dev/tty0': '/sbin/debian-installer' Nov 4 12:55:48 init: starting pid 209, tty '/dev/hvc0': '/sbin/debian-installer' Nov 4 12:55:48 kernel: [ 5.041972] random: crng init done Nov 4 12:55:49 debconf: Setting debconf/language to en Nov 4 12:55:49 debconf: Setting debconf/language to en Nov 4 12:55:49 main-menu[242]: INFO: Falling back to the package description for brltty-udeb Nov 4 12:55:49 main-menu[246]: INFO: Falling back to the package description for brltty-udeb Nov 4 12:55:49 main-menu[242]: INFO: Falling back to the package description for brltty-udeb Nov 4 12:55:49 main-menu[242]: INFO: Falling back to the package description for brltty-udeb Nov 4 12:55:49 main-menu[242]: INFO: Menu item 'brltty-udeb' selected Nov 4 12:55:49 main-menu[246]: INFO: Falling back to the package description for brltty-udeb Nov 4 12:55:49 main-menu[246]: INFO: Falling back to the package description for brltty-udeb Nov 4 12:55:49 main-menu[246]: INFO: Menu item 'brltty-udeb' selected Nov 4 12:55:49 main-menu[242]: /var/lib/dpkg/status: No such file or directory Nov 4 12:55:49 main-menu[242]: /var/lib/dpkg/status: No such file or directory Nov 4 12:55:49 main-menu[242]: WARNING **: Configuring 'preseed-common' failed with error code 1 Nov 4 12:55:49 main-menu[242]: WARNING **: Menu item 'brltty-udeb' failed. Nov 4 12:55:49 main-menu[242]: WARNING **: Unable to set title for brltty-udeb. Nov 4 12:55:49 main-menu[242]: INFO: Falling back to the package description for brltty-udeb Nov 4 12:55:49 main-menu[246]: /var/lib/dpkg/status: No such file or directory Nov 4 12:55:49 main-menu[246]: /var/lib/dpkg/status: No such file or directory Nov 4 12:55:49 main-menu[246]: WARNING **: Configuring 'cdebconf-udeb' failed with error code 1 Nov 4 12:55:49 main-menu[246]: WARNING **: Menu item 'brltty-udeb' failed. Nov 4 12:55:49 main-menu[246]: WARNING **: Unable to set title for brltty-udeb. Nov 4 12:55:49 main-menu[246]: INFO: Falling back to the package description for brltty-udeb Thanks, xihuany