home  bbs  files  messages ]

      ZZLI4427             linux.debian.maint.boot             505 messages      

[ previous | next | reply ]

[ list messages | list forums ]

  Msg # 22 of 505 on ZZLI4427, Thursday 8-20-25, 12:37  
  From: CYRIL BRULEBOIS  
  To: ALL  
  Subj: Bug#769406: Serial console not set up af  
 XPost: linux.debian.bugs.dist 
 From: kibi@debian.org 
  
 Kevin Otte  (2025-08-18): 
 > I've just run headlong into this 10 years later. 
 > 
 > I have a script that creates a VM thusly: 
 > virt-install --name ${vm_name} --memory ${mem_size} \\ 
 >  --disk "size=${disk_size},pool=${disk_pool},discard=unmap" \\ 
 >  --machine q35 \\ 
 >  --location 
 > http://ftp.us.debian.org/debian/dists/${suite}/main/installer-amd64/ \\ 
 >  --os-variant name=debiantesting \\ 
 >  --network network=ovs-net,target=ve0-${vm_name} \\ 
 >  --graphics none --extra-args="console=ttyS0 netcfg/hostname=${vm_name}" \\ 
 >  --console pty \\ 
 >  --initrd-inject preseed.cfg 
 > 
 > Under both bookworm and trixie, the install completes successfully over the 
 > serial console. 
 > 
 > In bookworm it seems systemd was being overly smart and starting a getty on 
 > the serial port when it saw one, as there is no other apparent 
 configuration 
 > to start it. Under trixie this behavior is no longer present, so I get no 
 > way to log into the installed system. (I can't be certain this is the case 
 > as I have not been able to locate a relevant changelog entry in systemd.) 
 > However, since grub does get configured, I can edit the kernel command line 
 > manually on boot and append "console=ttyS0". systemd sees this kernel 
 > argument and starts the getty. 
 > 
 > So it seems like the simplest way to fix this in the current environment is 
 > to have the code that sets up the grub serial arguments also go ahead and 
 > tack on a matching "console=" to GRUB_CMDLINE_LINUX. 
  
 Let's see what's been documented for 10+ years (see commit below) on 
 https://www.debian.org/releases/trixie/amd64/ch05s03.en.html#module-parms 
  
     5.3.1. Boot serial console 
  
     [€€€] 
  
         Be sure to specify this option after €€€---€€€, so that it is copied 
 into 
         the bootloader configuration for the installed system (if supported 
 by 
         the installer for the bootloader). 
  
 (Arguably it could be moved elsewhere within that section to make it 
 easier to spot.) 
  
 Commit: https://salsa.debian.org/installer-team/installation-gui 
 e/-/commit/615fcaa11aa37bfd5b6295d02a9e642e5d2e2f48 
  
  
 Cheers, 
 -- 
 Cyril Brulebois (kibi@debian.org)             
 D-I release manager -- Release team member -- Freelance Consultant 
  
 -----BEGIN PGP SIGNATURE----- 
  
 iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmilOl4ACgkQ/5FK8MKz 
 VSBLuQ//edaKt2L8+RSHy2nkEbglletL3/yeZw4X376+cLLUf7k4HzFZStUebl55 
 Jb7z5GsVqIYE41sBFW6hdusA4qxam26y0Nn/eLUBHXYSC533CjFIoLrumQ0IT5h4 
 Fw2z+c6EqQude12zBPnVgMVu8X/876oaWvgntDIqHI+Sy/1KWBD52qb4Jefe7KS3 
 OzChwxcN5HaHAI/uP8LAwM+g59NgSZWGIN0J5xsoPgn+k+nJjm0OI6eG7TNnCpIH 
 a79e2y20k/NfYoSf9YSZwqbWOb+vPoWWf6Hu0KnxOk7S6091tQ9YSHqEYDH+Fw4A 
 mIBz1nXWIIgVVG9K93MrtAYMJF6OFUrLhy6aEFnJKYFHOoX8POIbsiIO5F4zNCTa 
 z9oVZnOSxTieVqDF71Wq4PBkHe73KPfVDS8PdVPzEgNj+WCkEyJGaOC9FS6vY44O 
 YfU6Er8JWMLfp90OzjR7BaWHkNn28NALSBN6BZxTJ3uLcQbTHSttdeE8KoRxezef 
 Yq/LJfUFDkThQNIJ1Nm42VXHWA9F24YX/rFLnQ8nZDASzNJhK8TNZ7x/N1D6Yv14 
 MqOgYpbggZopqgCyXLOzWj7G+HTfcO1d8+EhfpDIuXOD61DFg0bii+H3srnexEwb 
 aydCZoDjxv3ukiulU3muXexQmO4s3dqR2N/ba3Q5X12JpqhK0Mc= 
 =Czmu 
 -----END PGP SIGNATURE----- 
  
 --- SoupGate-Win32 v1.05 
  * Origin: you cannot sedate... all the things you hate (1:229/2) 

[ list messages | list forums | previous | next | reply ]

search for:

328,100 visits
(c) 1994,  bbs@darkrealms.ca