[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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): [?25l[?1c[?25h[?0c
(process:2375): 

(process:2375): local: 36: 
(process:2375): --: bad variable name
(process:2375): 
(process:2375): [?25l[?1c                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
(process:2375):                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
(process:2375):                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ Installing GRUB boot loader ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿³                                                                         ³ ³ 0%[14
(process:2375): ;76H ³ ³                                                                         ³ ³                                                                         ³ ³                                                                         ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ                                                                            
(process:2375): Installing the 'grub' package...
(process:2375):            16
(process:2375): Looking for other operating systems...
(process:2375):             33
(process:2375): Determining GRUB boot device...       
(process:2375): ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ [!] Configuring grub-installer.postinst ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿³                                                                       ³ ³ It seems that this installation of Debian is the only operating       ³ ³ system on this computer. If so, it should be safe to install the GRUB ³ ³ boot loader to the master boot record of your first hard drive.       ³ ³³ ³ Warning: If the installer failed to detect another operating system   ³ [
(process:2375): 0;10m³ that is present on your computer, modifying the master boot record    ³ ³ will make that operating system temporarily unbootable, though GRUB   ³ ³ can be manually configured later to boot it.³ ³                                                                       ³ ³ Install the GRUB boot loader to the master boot record?               ³³                                                                       ³ ³     <Go Back>                                     
(process:2375):   <Yes>    <No>     ³ ³                                                                       ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ                                                                          
(process:2375): <Yes>    <No>
(process:2375): <Go Back><No>
(process:2375):                                                                                                                                                                                                                                                                                                        ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ Installing GRUB boot loader ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿  ³                                   33%                                   ³                                                                         ³ Determining GRUB boot device...                                         ³                                               [30
(process:2375): m³ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ                                                                                                                                                                                                                                                                                                                                                                                                                                                          
(process:2375):                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
(process:2375): [?25h[?0c
(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): 
(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: