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

Bug#260136: grub-installer: fails in postinst (missing get_serial_console)



Steinar H. Gunderson wrote:
> Package: grub-installer
> Severity: grave
> Justification: renders package unusable
> 
> grub-installer fails to install, with the following message in syslog:
> 
> Jul 18 20:45:52 main-menu[298]: (process:25772): /var/lib/dpkg/info/grub-installer.postinst: 7: get_serial_console: not found
> 
> get_serial_console() is a function defined further down in the script,

It should be defined before it is used.

> which appearently can't be run in a subshell in ash like line 7 tries to
> do:
> 
> serial="$(get_serial_console)"
> 
> Doing "touch /bin/get_serial_console ; chmod +x /bin/get_serial_console"
> makes the package work.

AFAICS this papers only over the problem, and fails for serial installs.


Thiemo



Reply to: