Bug#547649: grub-pc postinst exit status 128
Arno Schuring
aelschuring at hotmail.com
Mon Sep 21 20:37:37 UTC 2009
Felix Zielcke wrote:
[...]
> It's the other way around:
> DEBCONF_DEBUG=developer
>
[...]
> And you added the x to the shebang of grub-pc.postinst?
> Maybe also add it in grub-pc.config.
> I only get the above output if I run it with `bash
> -x .../grub-pc.postinst' without adding a x in the shebang.
I did:
#!/bin/bash -e
set -x
I figured it would essentially be the same...
Now the tests repeated, with:
root at neminis:~# head -n2 /var/lib/dpkg/info/grub-pc.postinst
#!/bin/bash -ex
#set -x
root at neminis:~# DEBCONF_DEBUG=developer dpkg --configure -a
Setting up grub-pc (1.97~beta3-1) ...
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/grub-pc.postinst
configure ''
debconf (developer): frontend started
debconf (developer): frontend running, package name is grub-pc
debconf (developer): starting /var/lib/dpkg/info/grub-pc.config configure
debconf (developer): <-- INPUT high grub-pc/chainload_from_menu.lst
debconf (developer): --> 0 question will be asked
debconf (developer): <-- GET grub-pc/kopt_extracted
debconf (developer): --> 0 false
debconf (developer): <-- SET grub2/linux_cmdline selinux=1
debconf (developer): --> 0 value set
debconf (developer): <-- enforcing=0
debconf (developer): <-- SET grub-pc/kopt_extracted true
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT medium grub2/linux_cmdline
debconf (developer): --> 30 question skipped
debconf (developer): <-- INPUT medium grub2/linux_cmdline_default
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit
status 128
dpkg: dependency problems prevent configuration of grub:
grub depends on grub-pc; however:
Package grub-pc is not configured yet.
dpkg: error processing grub (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
grub-pc
grub
Repeating only the postinst command gives the following:
root at neminis:~# DEBCONF_DEBUG=developer
/var/lib/dpkg/info/grub-pc.postinst configure 1.97~beta3-1
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/grub-pc.postinst
configure 1.97~beta3-1
debconf (developer): frontend started
debconf (developer): frontend running, package name is grub-pc
debconf (developer): starting /var/lib/dpkg/info/grub-pc.config
configure 1.97~beta3-1
debconf (developer): <-- INPUT high grub-pc/chainload_from_menu.lst
debconf (developer): --> 0 question will be asked
debconf (developer): <-- GET grub-pc/kopt_extracted
debconf (developer): --> 0 false
debconf (developer): <-- SET grub2/linux_cmdline selinux=1
debconf (developer): --> 0 value set
debconf (developer): <-- enforcing=0
debconf (developer): <-- SET grub-pc/kopt_extracted true
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT medium grub2/linux_cmdline
debconf (developer): --> 30 question skipped
debconf (developer): <-- INPUT medium grub2/linux_cmdline_default
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
root at neminis:~# echo $?
128
I double checked, but /boot/grub/menu.lst was not modified (it should,
right?)
More information about the Pkg-grub-devel
mailing list