On Mon, 12 Dec 2011 13:52:25 +0100 Laurent Bigonville <[email protected]> wrote:
> Hi,
>
> Upgrading from rpcbind 0.2.0-6, is failing with this:
>
> Paramétrage de rpcbind (0.2.0-7) ...
> Installation de la nouvelle version du fichier de configuration /etc/init.d/rpcbind ... > ln: impossible de créer le lien symbolique « /run/sendsigs.omit.d/rpcbind »: Aucun fichier ou dossier de ce type
> dpkg : erreur de traitement de rpcbind (--configure) :
> le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
>
> Running the configure step again succeed.

Looking at this quite old bug, the problem seems to be that for some reasons, the /run/sendsigs.omit.d/ directory was not yet created before the postinst script was trying to symlink the pid file.

        if dpkg --compare-versions "$2" lt "0.2.0-7"; then
                if [ -f /lib/init/rw/sendsigs.omit.d/rpcbind ]; then
mv /lib/init/rw/sendsigs.omit.d/rpcbind /run/rpcbind.pid
                        ln -s /run/rpcbind.pid /run/sendsigs.omit.d/rpcbind
                fi
        fi


Adding a mkdir just before the call to ln would have fixed this.

But now I guess this is too late, wheezy has been released with 0.2.0-8 so the code would only be executed during squeeze to wheezy upgrade, I guess would could close it.

Cheers,

Laurent Bigonville

Reply via email to