I'm using ubuntu-vm-builder to create disk image on-the-fly. I want to use a script to change user keyboard on first login with --firstlogin argument with the following script :
#!/bin/bash # Running reconfigure of console-data to change keyboard layout sudo dpkg-reconfigure console-data sudo dpkg-reconfigure keyboard-configuration
When I attempt my first login, ubuntu ask me for my root password without displaying ncurses to change keyboard layout and return directly to the bash prompt.
Any idea of how can I have interactive keyboard layout change display ?