While you're waiting for rpi-imager to add this capability, if you're comfortable using the command line and your host system (where you run rpi-imager) is Linux or MacOS, AND you're burning a RasPiOS IMG, you could consider using sdm.
sdm has a localization plugin, L10n, that lets you easily set keymap, locale, and timezone when customizing OR burning an IMG. You can also specify "host", which will pick up the localization settings from the host system on which sdm is running if your host OS follows "Debian conventions":The "sdm --customize" command as shown above does a "light" customization which installs sdm into /usr/local/sdm, and establishes /etc/sdm for sdm logging. Basically, changes you would never notice during normal system usage.
sdm has a localization plugin, L10n, that lets you easily set keymap, locale, and timezone when customizing OR burning an IMG. You can also specify "host", which will pick up the localization settings from the host system on which sdm is running if your host OS follows "Debian conventions":
- /etc/localtime for the timezone
- /etc/default/keyboard for keyboard layout
- /etc/default/locale for the locale
Code:
# Install sdm on your host systemcurl -L https://raw.githubusercontent.com/gitbls/sdm/master/EZsdmInstaller | bash# Customize the IMG to set the localization optionssudo sdm --customize --apt-options none --plugin L10n:host /path/to/2024-03-15-raspios-bookworm-arm64.imgsudo sdm --burn /dev/sdX --hostname yourhostname --expand-root /path/to/2024-03-15-raspios-bookworm-arm64.img# No customizations to the IMG, set the localization options when burning the disksudo sdm --customize --apt-options none /path/to/2024-03-15-raspios-bookworm-arm64.imgsudo sdm --burn /dev/sdX --hostname yourhostname --expand-root --plugin L10n:"locale=es|keyboard=es|timezone=Europe/Brussels" /path/to/2024-03-15-raspios-bookworm-arm64.img
Statistics: Posted by bls — Sat May 11, 2024 4:05 pm