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_d...@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 -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100629093312.ge9...@baikonur.stro.at