Bug#98629: Selecting.../Unpacking... text messes up serial console
On Thu, May 24, 2001 at 02:25:17PM -0700, David Whedon wrote:
> I may have an explanation, but am not sure of the solution. When we inovke
> debotstrap we communicate with in through it's stdin and fd 3. We redirect
> debootstrap's stdout and stderr to /dev/tty4. stdout and stderr have those
> messages described below. My guess is that when installing over a serial
> console tty4 goes to the console as well, possible?
Right, from exec_debootstrap()
/* redirect stdout and stderr to /dev/tty4 */
freopen("/dev/tty4", "w", stderr);
dup2(2,1);
I suppose the freopen fails, so stdout/stderr will remain on the console.
Maybe we could write it to /target/tmp/debootstrap.log on a serial
console system?
Richard
Reply to: