Debian Bug report logs - #576641
Can't open /scripts/functions, no backup of initrd made

Package: mdadm; Maintainer for mdadm is Daniel Baumann <daniel.baumann@progress-linux.org>; Source for mdadm is src:mdadm (PTS, buildd, popcon).

Reported by: Harald Dunkel <harri@afaics.de>

Date: Tue, 6 Apr 2010 06:18:02 UTC

Severity: important

Tags: patch

Done: maximilian attems <max@stro.at>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#576641; Package initramfs-tools. (Tue, 06 Apr 2010 06:18:05 GMT) (full text, mbox, link).


Acknowledgement sent to Harald Dunkel <harri@afaics.de>:
New Bug report received and forwarded. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Tue, 06 Apr 2010 06:18:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Harald Dunkel <harri@afaics.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Can't open /scripts/functions, no backup of initrd made
Date: Tue, 06 Apr 2010 08:14:29 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: initramfs-tools
Version: 0.94

Upgrade failed with

Setting up initramfs-tools (0.94) ...
Installing new version of config file /etc/kernel/postrm.d/initramfs-tools ...
Installing new version of config file /etc/kernel/postinst.d/initramfs-tools ...
Installing new version of config file /etc/initramfs-tools/initramfs.conf ...
Installing new version of config file /etc/initramfs-tools/update-initramfs.conf ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-3-amd64
W: Possible missing firmware /lib/firmware/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl8168d-1.fw for module r8169
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.


Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku60T8ACgkQUTlbRTxpHjdUCgCfV5IxNreOHuzQsyTNelG5cqWS
8esAn15QF0ex7uBW7xJ1AFOId8pWudSN
=8wd+
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#576641; Package initramfs-tools. (Tue, 06 Apr 2010 07:12:06 GMT) (full text, mbox, link).


Acknowledgement sent to maximilian attems <max@stro.at>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Tue, 06 Apr 2010 07:12:07 GMT) (full text, mbox, link).


Message #10 received at 576641@bugs.debian.org (full text, mbox, reply):

From: maximilian attems <max@stro.at>
To: Harald Dunkel <harri@afaics.de>, 576641@bugs.debian.org
Cc: debian-kernel@lists.debian.org
Subject: Re: Bug#576641: Can't open /scripts/functions, no backup of initrd made
Date: Tue, 6 Apr 2010 09:01:29 +0200
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.




Bug reassigned from package 'initramfs-tools' to 'mdadm'. Request was from maximilian attems <max@stro.at> to control@bugs.debian.org. (Tue, 06 Apr 2010 07:12:08 GMT) (full text, mbox, link).


Bug No longer marked as found in versions initramfs-tools/0.94. Request was from maximilian attems <max@stro.at> to control@bugs.debian.org. (Tue, 06 Apr 2010 07:12:09 GMT) (full text, mbox, link).


Severity set to 'serious' from 'normal' Request was from maximilian attems <max@stro.at> to control@bugs.debian.org. (Tue, 06 Apr 2010 07:12:10 GMT) (full text, mbox, link).


Added tag(s) patch. Request was from maximilian attems <max@stro.at> to control@bugs.debian.org. (Tue, 06 Apr 2010 07:12:10 GMT) (full text, mbox, link).


Added indication that bug 576641 blocks 576603 Request was from maximilian attems <maks@debian.org> to control@bugs.debian.org. (Tue, 06 Apr 2010 07:12:13 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>:
Bug#576641; Package mdadm. (Tue, 06 Apr 2010 13:36:06 GMT) (full text, mbox, link).


Acknowledgement sent to maximilian attems <max@stro.at>:
Extra info received and forwarded to list. Copy sent to Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>. (Tue, 06 Apr 2010 13:36:06 GMT) (full text, mbox, link).


Message #25 received at 576641@bugs.debian.org (full text, mbox, reply):

From: maximilian attems <max@stro.at>
To: Harald Dunkel <harri@afaics.de>, 576641@bugs.debian.org
Cc: debian-kernel@lists.debian.org
Subject: Re: Bug#576641: Can't open /scripts/functions, no backup of initrd made
Date: Tue, 6 Apr 2010 15:26:51 +0200
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.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>:
Bug#576641; Package mdadm. (Tue, 06 Apr 2010 19:42:03 GMT) (full text, mbox, link).


Acknowledgement sent to maximilian attems <max@stro.at>:
Extra info received and forwarded to list. Copy sent to Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>. (Tue, 06 Apr 2010 19:42:03 GMT) (full text, mbox, link).


Message #30 received at 576641@bugs.debian.org (full text, mbox, reply):

From: maximilian attems <max@stro.at>
To: Harald Dunkel <harri@afaics.de>, 576641@bugs.debian.org
Cc: debian-kernel@lists.debian.org
Subject: Re: Bug#576641: Can't open /scripts/functions, no backup of initrd made
Date: Tue, 6 Apr 2010 21:30:42 +0200
On Tue, Apr 06, 2010 at 08:14:29AM +0200, Harald Dunkel wrote:
> 
> Package: initramfs-tools
> Version: 0.94
> 
> Upgrade failed with
> 
> Setting up initramfs-tools (0.94) ...
> Installing new version of config file /etc/kernel/postrm.d/initramfs-tools ...
> Installing new version of config file /etc/kernel/postinst.d/initramfs-tools ...
> Installing new version of config file /etc/initramfs-tools/initramfs.conf ...
> Installing new version of config file /etc/initramfs-tools/update-initramfs.conf ...
> update-initramfs: deferring update (trigger activated)
> Processing triggers for initramfs-tools ...
> update-initramfs: Generating /boot/initrd.img-2.6.32-3-amd64
> W: Possible missing firmware /lib/firmware/rtl8168d-2.fw for module r8169
> W: Possible missing firmware /lib/firmware/rtl8168d-1.fw for module r8169
> W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
> W: mdadm: no arrays defined in configuration file.
> .: 4: Can't open /scripts/functions
> 

which version of mdadm are you running please post, output of
dpkg -l mdadm

thanks




Severity set to 'important' from 'serious' Request was from maximilian attems <max@stro.at> to control@bugs.debian.org. (Tue, 06 Apr 2010 19:48:21 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>:
Bug#576641; Package mdadm. (Wed, 07 Apr 2010 03:48:03 GMT) (full text, mbox, link).


Acknowledgement sent to Harald Dunkel <harri@afaics.de>:
Extra info received and forwarded to list. Copy sent to Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>. (Wed, 07 Apr 2010 03:48:04 GMT) (full text, mbox, link).


Message #37 received at 576641@bugs.debian.org (full text, mbox, reply):

From: Harald Dunkel <harri@afaics.de>
To: maximilian attems <max@stro.at>
Cc: 576641@bugs.debian.org, debian-kernel@lists.debian.org
Subject: Re: Bug#576641: Can't open /scripts/functions, no backup of initrd made
Date: Wed, 07 Apr 2010 05:37:07 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/06/10 21:30, maximilian attems wrote:
> 
> which version of mdadm are you running please post, output of
> dpkg -l mdadm
> 

It is mdadm 3.1.1-1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku7/d4ACgkQUTlbRTxpHjdnowCdHIdxmALmQpEeth117vMk8nl4
4FUAnjFvbhCWDmr4VpOIV8dZpIapR1du
=YvqB
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>:
Bug#576641; Package mdadm. (Wed, 07 Apr 2010 04:12:06 GMT) (full text, mbox, link).


Acknowledgement sent to maximilian attems <max@stro.at>:
Extra info received and forwarded to list. Copy sent to Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>. (Wed, 07 Apr 2010 04:12:06 GMT) (full text, mbox, link).


Message #42 received at 576641@bugs.debian.org (full text, mbox, reply):

From: maximilian attems <max@stro.at>
To: Harald Dunkel <harri@afaics.de>
Cc: 576641@bugs.debian.org, debian-kernel@lists.debian.org
Subject: Re: Bug#576641: Can't open /scripts/functions, no backup of initrd made
Date: Wed, 7 Apr 2010 06:07:41 +0200
On Wed, 07 Apr 2010, Harald Dunkel wrote:

> On 04/06/10 21:30, maximilian attems wrote:
> > 
> > which version of mdadm are you running please post, output of
> > dpkg -l mdadm
> > 
> 
> It is mdadm 3.1.1-1

can't be the code of mdadm 3.1.1-1 can not produce such an error,
but the experimental version 3.1.1-1+incremental+4 is faulty.

-- 
maks




Information forwarded to debian-bugs-dist@lists.debian.org, Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>:
Bug#576641; Package mdadm. (Wed, 07 Apr 2010 05:03:06 GMT) (full text, mbox, link).


Acknowledgement sent to Harald Dunkel <harri@afaics.de>:
Extra info received and forwarded to list. Copy sent to Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>. (Wed, 07 Apr 2010 05:03:06 GMT) (full text, mbox, link).


Message #47 received at 576641@bugs.debian.org (full text, mbox, reply):

From: Harald Dunkel <harri@afaics.de>
To: 576641@bugs.debian.org, debian-kernel@lists.debian.org
Subject: Re: Bug#576641: Can't open /scripts/functions, no backup of initrd made
Date: Wed, 07 Apr 2010 06:57:57 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/07/10 06:07, maximilian attems wrote:
> 
> can't be the code of mdadm 3.1.1-1 can not produce such an error,
> but the experimental version 3.1.1-1+incremental+4 is faulty.
> 
After removing mdadm I got this:

# dpkg -i initramfs-tools_0.94_all.deb
(Reading database ... 30558 files and directories currently installed.)
Preparing to replace initramfs-tools 0.93.4 (using initramfs-tools_0.94_all.deb) ...
Unpacking replacement initramfs-tools ...
Setting up initramfs-tools (0.94) ...
Installing new version of config file /etc/kernel/postrm.d/initramfs-tools ...
Installing new version of config file /etc/kernel/postinst.d/initramfs-tools ...
Installing new version of config file /etc/initramfs-tools/initramfs.conf ...
Installing new version of config file /etc/initramfs-tools/update-initramfs.conf ...
update-initramfs: deferring update (trigger activated)
Processing triggers for man-db ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-3-amd64
W: Possible missing firmware /lib/firmware/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl8168d-1.fw for module r8169
.: 4: Can't open /scripts/functions
# echo $?
0


Regards

Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku8ENUACgkQUTlbRTxpHjcoTQCbBUZVvF1HcRVS8EB3f+g04juv
sgsAn2Tz8IjCu5vJ6W7TD97oOuYS9g5d
=7p1I
-----END PGP SIGNATURE-----




Reply sent to maximilian attems <max@stro.at>:
You have taken responsibility. (Thu, 08 Apr 2010 23:27:08 GMT) (full text, mbox, link).


Notification sent to Harald Dunkel <harri@afaics.de>:
Bug acknowledged by developer. (Thu, 08 Apr 2010 23:27:08 GMT) (full text, mbox, link).


Message #52 received at 576641-done@bugs.debian.org (full text, mbox, reply):

From: maximilian attems <max@stro.at>
To: 576641-done@bugs.debian.org
Subject: Re: Can't open /scripts/functions
Date: Fri, 9 Apr 2010 01:21:26 +0200
fixed by cryptsetup NMU, install cryptsetup version 2:1.1.0-2.1

thanks

-- 
maks




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 07 May 2010 07:34:35 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 14 01:08:42 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.