Bug#279134: Obscure error from main-menu after grub-installer has run
On Monday 01 November 2004 16:49, Joey Hess wrote:
> I've seen this message, it seems to be harmless and seemed to be coming
> from the grub-install script being run in the chroot. It probably is a
> bug, it's just that grub-install is not set -e so the problem doesn't
> crash it.
Hmmm. I very much doubt that grub-install being chrooted is the cause.
I can reproduce the error by running
udpkg --configure --force-configure grub-installer
from vt2 and, as you can see from the attached 'script' file, the error
happens right at the beginning.
(I used <go back> from the first debconf screen.)
Hmmmm again.
I think the '36' refers to line 36 of the postinst. This would mean that
the error is in:
<snip>
get_serial_console() {
local defconsole=$(sed -e 's/.*console=/console=/' /proc/cmdline);
if echo "${defconsole}" | grep -q console=ttyS; then
local PORT=$(echo "${defconsole}" | \
sed -e 's%^console=ttyS%%' -e 's%,.*%%')
local SPEED=$(echo "${defconsole}" | \
sed -e 's%^console=ttyS[0-9]\+,%%' -e 's% .*%%')
local SERIAL="${PORT},${SPEED}"
echo "console=$SERIAL"
fi
}
serial="$(get_serial_console)" # <--- This is line 36
</snip>
This is not unlikely as /proc/cmdline does contain '--'.
I will try to narrow this down further (and maybe even patch?) tomorrow.
/me is very happy he was able to track this down (logs should be clean!)
Script started on Mon Nov 1 23:12:47 2004
BusyBox v1.00-pre10 (Debian 20040623-1) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
/var/lib/cdebconf # udpkg --configure --force-configure grub-installer
(Reading database...)
(process:2375): [1;30r[4l[?25l[?1c[?25h[?0c[0;10m[37m[40m[1;30r[H[J[30;1H
(process:2375): [0;10m[39;49m
[K
(process:2375): local: 36:
(process:2375): --: bad variable name
(process:2375):
(process:2375): [1;30r[4l[?25l[?1c[0;10m[37m[40m[1;30r[H[J[1;1H[1m[37m[44m [2;1H [3;1H [4;1H [5;1H [6;1H [7;1H [8;1H [9;1H [10;1H [11;1H [12;1H
(process:2375): [13;1H [14;1H [15;1H [16;1H [17;1H [18;1H [19;1H [20;1H [21;1H [22;1H [23;1H
(process:2375): [24;1H [25;1H [26;1H [27;1H [28;1H [29;1H [30;1H [30;79H [4h [4l[1;1H[12;3H[0;10m[11m[30m[47mÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´[0;10m[10m[30m[47m [31mInstalling GRUB boot loader[30m [11m[30m[47mÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿[13;3H³[0;10m[10m[30m[47m [11m[30m[47m³[0;10m[10m[1m[37m[40m [14;3H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m [14;40H[1m[37m[44m0%[14
(process:2375): ;76H[0;10m[30m[47m [11m[30m[47m³[0;10m[10m[1m[37m[40m [15;3H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m [11m[30m[47m³[0;10m[10m[1m[37m[40m [16;3H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m [11m[30m[47m³[0;10m[10m[1m[37m[40m [17;3H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m [11m[30m[47m³[0;10m[10m[1m[37m[40m [18;3H[0;10m[11m[30m[47mÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ[0;10m[10m[1m[37m[40m [19;4H [14;76H
(process:2375): [16;5H[0;10m[30m[47mInstalling the 'grub' package...
(process:2375): [14;5H[1m[37m[41m [14;39H[44m16[16;37H
(process:2375): [16;5H[0;10m[30m[47mLooking for other operating systems...
(process:2375): [14;16H[1m[37m[41m [14;39H[44m33[16;43H
(process:2375): [16;5H[0;10m[30m[47mDetermining GRUB boot device... [16;36H
(process:2375): [8;4H[11m[30m[47mÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´[0;10m[10m[30m[47m [31m[!] Configuring grub-installer.postinst[30m [11m[30m[47mÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿[9;4H³[0;10m[10m[30m[47m [11m[30m[47m³[0;10m[10m[1m[37m[40m [10;4H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m It seems that this installation of Debian is the only operating [11m[30m[47m³[0;10m[10m[1m[37m[40m [11;4H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m system on this computer. If so, it should be safe to install the GRUB [11m[30m[47m³[0;10m[10m[1m[37m[40m [12;4H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m boot loader to the master boot record of your first hard drive. [11m[30m[47m³[0;10m[10m[1m[37m[40m [13;4H[0;10m[11m[30m[47m³[13;76H³[0;10m[10m[1m[37m[40m [14;4H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m Warning: If the installer failed to detect another operating system [11m[30m[47m³[0;10m[10m[1m[37m[40m [15;4H[
(process:2375): 0;10m[11m[30m[47m³[0;10m[10m[30m[47m that is present on your computer, modifying the master boot record [11m[30m[47m³[0;10m[10m[1m[37m[40m [16;4H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m will make that operating system temporarily unbootable, though GRUB [11m[30m[47m³[0;10m[10m[1m[37m[40m [17;4H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m can be manually configured later to boot it.[17;76H[11m[30m[47m³[0;10m[10m[1m[37m[40m [18;4H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m [11m[30m[47m³[0;10m[10m[1m[37m[40m [19;4H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m Install the GRUB boot loader to the master boot record? [11m[30m[47m³[20;4H³[0;10m[10m[30m[47m [11m[30m[47m³[0;10m[10m[1m[37m[40m [21;4H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m <Go Back>
(process:2375): [37m[41m<Yes>[30m[47m <No> [11m[30m[47m³[0;10m[10m[1m[37m[40m [22;4H[0;10m[11m[30m[47m³[0;10m[10m[30m[47m [11m[30m[47m³[0;10m[10m[1m[37m[40m [23;4H[0;10m[11m[30m[47mÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ[0;10m[10m[1m[37m[40m [24;5H [21;63H
(process:2375): [21;58H[0;10m[30m[47m<Yes> [37m[41m<No>
(process:2375): [21;10H<Go Back>[21;67H[30m[47m<No>[21;19H
(process:2375): [8;4H[1m[37m[44m [9;4H [10;4H [11;4H [12;4H[0;10m[11m[30m[47mÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´[0;10m[10m[30m[47m [31mInstalling GRUB boot loader[30m [11m[30m[47mÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿[13;4H[0;10m[10m[30m[47m [13;76H [11m[30m[47m³[14;4H[0;10m[10m[30m[47m [1m[37m[41m [44m 33% [0;10m[30m[47m [11m[30m[47m³[15;4H[0;10m[10m[30m[47m [11m[30m[47m³[16;4H[0;10m[10m[30m[47m Determining GRUB boot device... [11m[30m[47m³[17;4H[0;10m[10m[30m[47m [17;76H [11m[30
(process:2375): m[47m³[18;4HÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ[19;4H[0;10m[10m[1m[37m[40m [20;4H[44m [21;4H [22;4H [23;4H [24;5H [24;4H
(process:2375): [12;3H [13;3H [14;3H [14;39H [14;76H [15;3H [16;3H [17;3H [18;3H [19;4H [19;3H
(process:2375): [?25h[?0c[30;1H
(process:2375): [0;10m[37m[40m[0;10m[39;49m
[K
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
(process:2375):
grub-installer's postinst exited with status 10
(Updating database...)
/var/lib/cdebconf # exit
Script done on Mon Nov 1 23:13:25 2004
Reply to: