[Bug 413415] Re: console-setup hangs under chroot debootstrap with a console login on ttyX
Abdulrahman Dimashki
413415 at bugs.launchpad.net
Tue Nov 22 11:15:50 UTC 2011
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.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to console-setup in Ubuntu.
https://bugs.launchpad.net/bugs/413415
Title:
console-setup hangs under chroot debootstrap with a console login on
ttyX
Status in “console-setup” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: console-setup
When debootstraping a Ubuntu chroot using debootstrap the console-
setup postconfigure invokes the console-setup init-script.
When the console-setup initscript is invoked while there is a console
login on one of the system ttys, it hangs forever trying to write to
that tty.
When there is no console login, the behaviour is as expected. I do
not know if this bug exists in Debian, however, because console-setup
is not part of the base system there.
This is a critical issue because it makes debootstrap behave
incorrectly on servers with people logged in on the console...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/console-setup/+bug/413415/+subscriptions
More information about the foundations-bugs
mailing list