Bug#492571: hook-functions: manual_add_modules(): doesn't work with mawk
tags 492571 moreinfo unreproducible
stop
On Sun, 27 Jul 2008, B.W.R. Noordhuis wrote:
>
> See manual_add_modules() in /usr/share/initramfs-tools/hook-functions:
>
> awk '/^insmod/ { print $2 }'
>
> That line works as expected when your awk is `gawk`, but produces no output
> with `mawk`. This leaves the system unbootable (in my case) because none of
> the kernel drivers are copied to the ramfs image. Easy workaround is to
> replace it with this:
>
> grep '^insmod' | sed -r '/insmod\s+//'
well i'm sorry but i can't reproduce your trouble:
charm:~# modprobe --set-version=$(uname -r) --ignore-install --show-depends ext3 2>/dev/null | mawk '/^insmod/ { print $2 }'
/lib/modules/2.6.26-1-amd64/kernel/fs/mbcache.ko
/lib/modules/2.6.26-1-amd64/kernel/fs/jbd/jbd.ko
/lib/modules/2.6.26-1-amd64/kernel/fs/ext3/ext3.ko
charm:~# cat /etc/debian_version
5.0
please send in the output of aboves command and output of
sh -x mkinitramfs -o /tmp/fooo
thanks, sorry for late reply
--
maks
Reply to: