1

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 ?

Regards, Thibault.

1

1 Answer 1

0

Since you are using sudo, you will need the root password. What's the problem with that?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .