[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#586554: initramfs-tools fails to upgrade from 0.96.1 to 0.97



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2010?06?29? 07:55, maximilian attems wrote:
> On Tue, Jun 29, 2010 at 08:02:03AM +0900, Olaf Meeuwissen wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 2010???06???28??? 17:31, maximilian attems wrote:
>>> On Mon, Jun 28, 2010 at 05:16:40PM +0900, Olaf Meeuwissen wrote:
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> Image Scan! for Linux upstream maintainer here.
>>>>
>>>> Care to point out why iscan is the culprit?  I went through the logs but
>>>> nothing ran a bell.
>>>
>>> you are sending the message to the wrong recipient.
>>>
>>> we do not maintain that iscan software, nor their initramfs-tools hooks
>>> please nag them.
>>
>> # I'd have to nag myself then.  I maintain iscan.
>>
>> Let me put the question differently then.  What exactly led to the
>> conclusion that iscan's initramfs hooks are the culprit.
>>
>> There is nothing in the log that gives me any clues about why iscan is
>> the culprit.  The hook provided by iscan is so trivial (and has worked
>> fine upto at leat 0.94.4) that I don't see what is wrong.
> 
> I haven't looked at the iscan hook script yet. The difference in
> initramfs-tools is that now the hooks are run under errexit and
> thus may abort. afair it has been determined that your hook script
> fails (mkinitramfs needs to be more explicit about what goes on).

Thanks for the info.  I've checked the dash and bash manual pages but
running under errexit seems to be the same as using `set -e`.  The hook
provided by iscan has done a `set -e` from the beginning so that can't
be the reason (unless I misunderstood the errexit stuff).

FTR, I've attached the hook scripts template.  The @...@ stuff is
substituted at package build time.

Hope this helps,
- -- 
Olaf Meeuwissen, LPIC-2           FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962               Help support software freedom
                 http://www.fsf.org/jf?referrer=1962
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwpOOIACgkQt5qrxaZLMnKNRgCghiCZgHJZZ1jKzlL8Zmkg+T36
iiMAoI2eRFWZGjdRTCWETdtQU2audlB6
=VZ4p
-----END PGP SIGNATURE-----
#! /bin/sh
#  Copyright (C) 2009  SEIKO EPSON CORPORATION
#
#  License: GPLv2+


STATE_DIR=@DEB_CONFIGURE_LOCALSTATEDIR@/lib/@DEB_SOURCE_PACKAGE@


set -e

PREREQS="udev"

prereqs()
{
    echo "$PREREQS"
}

case "$1" in
    prereqs)
	prereqs
	exit 0
	;;
esac

. /usr/share/initramfs-tools/hook-functions

test -r $STATE_DIR/clean-files || exit 0

awk '{print $2}' $STATE_DIR/clean-files \
    | while read file; do
    test -e ${DESTDIR}$file && rm -f ${DESTDIR}$file
done

Reply to: