Bug#576641: Can't open /scripts/functions, no backup of initrd made
maximilian attems
max at stro.at
Tue Apr 6 13:26:51 UTC 2010
On Tue, Apr 06, 2010 at 09:01:29AM +0200, maximilian attems wrote:
> > .: 4: Can't open /scripts/functions
> >
>
> mdadm initramfs/script.local-top assumes to be only run in
> initramfs which is wrong, by a quick look at it you just need
>
>
> --- a/debian/initramfs/script.local-top.orig 2010-04-06 09:06:57.000000000 +0200
> +++ b/debian/initramfs/script.local-top 2010-04-06 09:07:22.000000000 +0200
> @@ -8,2 +8,6 @@ set -eu
>
> +case ${1:-} in
> + prereqs) echo "multipath"; exit 0;;
> +esac
> +
> . /scripts/functions
> @@ -34,5 +38,2 @@ verbose()
>
> -case ${1:-} in
> - prereqs) echo "multipath"; exit 0;;
> -esac
did you test aboves patch, applies to
/usr/share/initramfs-tools/script/local-top/mdadm on a box?
> will check in ubuntu package, pretty sure they have a fix.
no diverged a lot, so please test aboves patch.
More information about the pkg-mdadm-devel
mailing list