Re: Bug#576641: Can't open /scripts/functions, no backup of initrd made
reassign 576641 mdadm
severity 576641 serious
tags 576641 patch
stop
On Tue, Apr 06, 2010 at 08:14:29AM +0200, Harald Dunkel wrote:
>
> Setting up initramfs-tools (0.94) ...
<zip>
> W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
> W: mdadm: no arrays defined in configuration file.
> .: 4: Can't open /scripts/functions
>
> AFAICS the postinst script made no backup of the old initrd.
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
will check in ubuntu package, pretty sure they have a fix.
Reply to: