From c2096dbf89928328fe2582acc161f3604fdf163f Mon Sep 17 00:00:00 2001 From: paulober <44974737+paulober@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:03:40 +0000 Subject: [PATCH 1/4] Drop powerstate change hook for rpi-usb-gadget Signed-off-by: paulober <44974737+paulober@users.noreply.github.com> --- stage2/04-cloud-init/files/99_raspberry-pi.cfg | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stage2/04-cloud-init/files/99_raspberry-pi.cfg b/stage2/04-cloud-init/files/99_raspberry-pi.cfg index 0b85080..ffc0994 100644 --- a/stage2/04-cloud-init/files/99_raspberry-pi.cfg +++ b/stage2/04-cloud-init/files/99_raspberry-pi.cfg @@ -5,12 +5,6 @@ datasource: NoCloud: seedfrom: file:///boot/firmware -power_state: - delay: now - mode: reboot - message: Rebooting machine to enable usb gadget mode - condition: test -f /etc/modules-load.d/usb-gadget.conf - # Disable SSH host key generation # regenerate_ssh_host_keys.service will take care # of it on first boot From db9a45ca9d64b87098de0f7c43b69956cb5c05b1 Mon Sep 17 00:00:00 2001 From: paulober Date: Mon, 6 Oct 2025 10:46:18 +0000 Subject: [PATCH 2/4] cloud-init support: Disable emmiting keys to console by default Signed-off-by: paulober --- stage2/04-cloud-init/files/99_raspberry-pi.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stage2/04-cloud-init/files/99_raspberry-pi.cfg b/stage2/04-cloud-init/files/99_raspberry-pi.cfg index ffc0994..f699abf 100644 --- a/stage2/04-cloud-init/files/99_raspberry-pi.cfg +++ b/stage2/04-cloud-init/files/99_raspberry-pi.cfg @@ -5,6 +5,11 @@ datasource: NoCloud: seedfrom: file:///boot/firmware +# Leave SSH key emission to console disabled so that +# users can decide whether to enable it manually. +ssh: + emit_keys_to_console: false + # Disable SSH host key generation # regenerate_ssh_host_keys.service will take care # of it on first boot From ba8b9bcb608a2e237c825d616715097e5f8e3f2f Mon Sep 17 00:00:00 2001 From: paulober Date: Mon, 6 Oct 2025 11:17:22 +0000 Subject: [PATCH 3/4] Disable ssh fingerprint to console Signed-off-by: paulober --- stage2/04-cloud-init/files/99_raspberry-pi.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/stage2/04-cloud-init/files/99_raspberry-pi.cfg b/stage2/04-cloud-init/files/99_raspberry-pi.cfg index f699abf..7134d90 100644 --- a/stage2/04-cloud-init/files/99_raspberry-pi.cfg +++ b/stage2/04-cloud-init/files/99_raspberry-pi.cfg @@ -9,6 +9,7 @@ datasource: # users can decide whether to enable it manually. ssh: emit_keys_to_console: false +no_ssh_fingerprints: true # Disable SSH host key generation # regenerate_ssh_host_keys.service will take care From 3b77da7113f69f614dcb734a88d1415b885acccf Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Thu, 9 Oct 2025 14:37:29 +0100 Subject: [PATCH 4/4] stage2: preseed console-setup/charmap47 --- stage2/01-sys-tweaks/00-debconf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stage2/01-sys-tweaks/00-debconf b/stage2/01-sys-tweaks/00-debconf index 5e3340b..724f839 100644 --- a/stage2/01-sys-tweaks/00-debconf +++ b/stage2/01-sys-tweaks/00-debconf @@ -1,3 +1,6 @@ +# Encoding to use on the console: +# Choices: ARMSCII-8, CP1251, CP1255, CP1256, GEORGIAN-ACADEMY, GEORGIAN-PS, IBM1133, ISIRI-3342, ISO-8859-1, ISO-8859-10, ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, KOI8-R, KOI8-U, TIS-620, UTF-8, VISCII +console-setup console-setup/charmap47 select UTF-8 # Character set to support: # Choices: . Arabic, # Armenian, # Cyrillic - KOI8-R and KOI8-U, # Cyrillic - non-Slavic languages, # Cyrillic - Slavic languages (also Bosnian and Serbian Latin), . Ethiopic, # Georgian, # Greek, # Hebrew, # Lao, # Latin1 and Latin5 - western Europe and Turkic languages, # Latin2 - central Europe and Romanian, # Latin3 and Latin8 - Chichewa; Esperanto; Irish; Maltese and Welsh, # Latin7 - Lithuanian; Latvian; Maori and Marshallese, . Latin - Vietnamese, # Thai, . Combined - Latin; Slavic Cyrillic; Hebrew; basic Arabic, . Combined - Latin; Slavic Cyrillic; Greek, . Combined - Latin; Slavic and non-Slavic Cyrillic, Guess optimal character set console-setup console-setup/codeset47 select Guess optimal character set