Bug#574553: PostInst fails (err. 2). "awk: fatal: ( o \(desemparejados: /(md/"
On Thu, Mar 25, 2010 at 10:54:06AM +0100, Guido Bozzetto wrote:
> Package: initramfs-tools
> Version: 0.93.4
> Severity: normal
sid initramfs-tools was trying to second guess your lilo / grub usage.
it stop doing this in latest git.
> ~# LANG=C dpkg --configure initramfs-tools
> update-initramfs: Generating /boot/initrd.img-2.6.32-3-amd64
> awk: fatal: Unmatched ( or \(: /(hd/
>
> I've lilo and grub2 together for backup. For me a working solution is
> to modify the line 192 from:
> && groot=$(awk '/^set root=/{print substr($2, 7, 3); exit}' \
> to:
> && groot=$(awk '/^set root=/{print substr($2, 7, length($2)-7); exit}' \
>
> I do not know if this is correct anyway so the correct part of the
> string is interpreted without the final "'":
> ~# LANG=C dpkg --configure initramfs-tools
> update-initramfs: Generating /boot/initrd.img-2.6.32-3-amd64
> Warning: '/proc/partitions' does not match '/dev' directory structure.
> ...
> 7 warnings were issued.
deinstall lilo if it is not used.
> # /etc/kernel-img.conf
>
> do_initrd = Yes
>
> link_in_boot = Yes
or fix your config here to have grub run:
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub
if you 'd were using lilo, nuke grub and fix your config to read
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = yes
do_initrd = yes
link_in_boot = no
the important part is the do_bootfloppy variable and the oldstyle hooks.
Reply to: