Recuperación de registros d-i
instalador-debian
Históricamente, el instalador de Debian (d-i) o netinstall ha sido el instalador ligero predeterminado para Debian y otras distribuciones basadas en Debian, compatible con todas las arquitecturas principales que soporta la distribución.
A partir de la versión original de Ubuntu 20.10, esta herramienta quedó obsoleta, lo que convirtió la integración de dicho instalador en un proyecto interno de Trisquel. Esta guía ayudará a recuperar el registro para depurar su comportamiento e identificar problemas.
Requisitos
Via network - TFTP
Ya sea que use o pruebe el d-i en una máquina virtual o de metal, necesitará 2 máquinas en la misma red para poder recuperar el registro.
- a physical or virtual network
- machine A, to install using d-i
- IP: any of the same network.
- machine B, already running trisquel
- IP: e.g. 192.168.1.10
Setup machine B as tftp server
As TFTP is the only tool shipped on the busybox environment available on the debian-installer.
Machine B, with a debian based system like trisquel, it's required to set it up as a tftp server
First install the tftp server with the following command,
sudo apt install tftpd-hpa
Then allow to create new files,
sudo sed -i 's|--secure|--secure --create|' /etc/default/tftpd-hpa
Fix permissions of the tftp directory,
sudo chown tftp:tftp /srv/tftp
Restart the server,
sudo systemctl restart tftpd-hpa
Backup logs from machine A
The d-i runs on tty1, where tty4 is showing the output syslog.
In order to backup the syslog, it's required to access any other tty, e.g. tty2 (Ctrl+Alt+F2)
Once on tty2 you require to go to the /var/log folder
cd /var/log/
tftp -l syslog -r syslog-remote 192.168.1.10 -p 69
where:
- l is the local file name
- r as the remote resulting name file
- machine B ip, 192.168.1.10
- p as the port to use default 69 *required
Once the syslog file is transferred it can easily be reviewed or copied using any other tools like ssh or rsync.