Bug#586554: initramfs-tools fails to upgrade from 0.96.1 to 0.97
On Tue, Jun 29, 2010 at 09:05:55AM +0900, Olaf Meeuwissen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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.
hmm I don'T see at a quick look why it failed.
> Hope this helps,
but I don't get it'S purpose?
why do you want mkinitramfs to clean some file in your statedir?
this seems the wrong location to do such
also why does it need udev (just a minor nit..)?
> #! /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: