Comment 6 for bug 413415

Revision history for this message
Abdulrahman Dimashki (idimsh) wrote :

I have used the next workaround in Lucid -> Lucid setup:

If you already have the following process in process list:
/bin/sh /bin/setupcon --force --save
kill it from the host

or, -on the target- before installing console-setup package, install 'kbd', then

On the target:
cd /bin/
mv fgconsole fgconsole.bak
cat > fgconsole.new << EOF
> #!/bin/bash
>
> echo "intentional error" >&2
> exit 1
> EOF
chmod +x fgconsole.new
ln -s fgconsole.new fgconsole

this will make any invocation of /bin/fgconsole to fail, which will cause the postinstall script of console-setup to invoke 'setupcon' with '--save-only' parameter instead of '--save --force'

now install 'console-setup'
apt-get install console-setup

This will continue the post script if you have killed 'setupcon' previously.

After the installation, restore /bin/fgconsole.