Bug#547649: grub-pc postinst exit status 128

Felix Zielcke fzielcke at z-51.de
Tue Sep 22 08:44:25 UTC 2009


Am Dienstag, den 22.09.2009, 10:42 +0200 schrieb Felix Zielcke:
> Am Montag, den 21.09.2009, 23:40 +0200 schrieb Arno Schuring:
> > Felix Zielcke wrote:
> > [...]
> > 
> > > 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.
> > > 
> > 
> > With added -x in /var/lib/dpkg/info/grub-pc.config I get:
> 
> > 
> > It seems something goes wrong when parsing the kopt line. My line is:
> > # kopt=root=UUID=6388def3-b3cd-4785-88c3-6b1ffbed6a9b ro selinux=1
> > enforcing=0
> > 
> > When I remove both SELinux arguments, the command no longer fails.
> 
> Yes. This should fix it. Seems like it was pure luck that it worked for
> others.
> 
> --- /var/lib/dpkg/info/grub-pc.config	2009-09-12 15:48:23.000000000 +0200
> +++ /var/lib/dpkg/info/grub-pc.config.new	2009-09-22 10:40:03.717122335 +0200

Args I forgot to remove the .new there ^
Please remove that before applying the patch or just change the line by
hand.

> @@ -20,7 +20,7 @@
>        db_get grub-pc/kopt_extracted || true
>        # this check ensures we only do this once
>        if [ "$RET" = "false" ] ; then
> -        kopt=`sed -ne "s/^# kopt=//p" /boot/grub/menu.lst | tr -s " " "\n" | grep -vx "\(ro\|root=[^ ]*\)"` || true
> +        kopt=`sed -ne "s/^# kopt=//p" /boot/grub/menu.lst | tr -s " " "\n" | grep -vx "\(ro\|root=[^ ]*\)" | paste -s -d ' '` || true
>          db_set grub2/linux_cmdline "${kopt}" || true
>          db_set grub-pc/kopt_extracted true || true
>          if [ "${kopt}" = "" ] ; then
> 
> 


-- 
Felix Zielcke
Proud Debian Maintainer






More information about the Pkg-grub-devel mailing list