Devuan bug report logs - #682
diversion of anacron not properly removed upon system install

Package: refractainstaller-base; Maintainer for refractainstaller-base is fsmithred <fsmithred@gmail.com>; Source for refractainstaller-base is src:refractainstaller-base.

Reported by: ". fsmithred" <fsmithred@gmail.com>

Date: Wed, 29 Jun 2022 10:08:02 UTC

Severity: normal

Done: fsmithred <fsmithred@gmail.com>

Full log


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

Received: (at submit) by bugs.devuan.org; 29 Jun 2022 10:06:03 +0000
Return-Path: <fsmithred@gmail.com>
Delivered-To: devuanbugs@dyne.org
Received: from mail.dyne.org [141.95.83.167]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Wed, 29 Jun 2022 10:06:03 +0000 (UTC)
Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by mail.dyne.org (Postfix) with ESMTPS id A6F866617E0
	for <submit@bugs.devuan.org>; Wed, 29 Jun 2022 12:04:48 +0200 (CEST)
Authentication-Results: mail.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YbBgZ4Qr";
	dkim-atps=neutral
Received: by mail-oi1-f176.google.com with SMTP id be10so20942807oib.7
        for <submit@bugs.devuan.org>; Wed, 29 Jun 2022 03:04:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20210112;
        h=mime-version:from:date:message-id:subject:to;
        bh=3ID749j8mOdCAkOPz21E82WvBgqitO8ZySXkzKnAQw0=;
        b=YbBgZ4Qrt+SaAkMeUKBJkdKE+UQZqibtEYCWKRDCbTBLGls0z5tMtGtAauj1+XPTVY
         YNXK48uzokItKpDSXRq9KTQTIDywx3lUhsvPK5YDrx2RdPDH+y4sUglxBDpYMGo2iBBb
         iW4cfRHkWi/yow3zY30hQzdSQRm9u/CCSJbV/YWAeEkOBAExUelXRu/j45rZ08MpqqnB
         fz0cgwCEJYFYux6NBxsulnSNG7wO9BFSUH8Vw/XNHFd2EA/F7COlL3ocdtxIe8iVm4VK
         3nn9v0xYcPxAUC0xz+8TKUbLsVah8WqI5UVlPCMc5EqhnzlsS2n49Y+5+1PvBG4OgzFM
         pghA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=3ID749j8mOdCAkOPz21E82WvBgqitO8ZySXkzKnAQw0=;
        b=Ol7iZhXg8lC81N22ENfTDIKO8gaJIg9RCcMprNNG3E0lI8tRMWJoODETrzCeCPnn5r
         yGJB90LRIsOwl8O4vzhJkxxhVx3vH3UsoxIObTaIGSEviaiklIHjrtV4046n4QFXFl31
         cirKHjO7Mr5R26qSiWxNen/boPzzvkihCxMdOFcmkDEVUJvME+dHYSPwrAIqpdrByxff
         0rg5Y2Jrrlx+BIXDyraTmj/frq+la8kvd6lQxA5P4oAjDHsS9pMJGdEsWBCpFQ5C6Fns
         Rz4WEJZZj97Y1JxqJC+/j0AC0QALZk7/bmtTJybnZPb/hlIOG9CNNQy1++rMTQgOW4R2
         eU0g==
X-Gm-Message-State: AJIora/L8dXxWRcr3k6INcwqBIRZehp6Uo6pHl98XU5gq0wTsnGmYgsc
	6yF0dcOPZ8iSsiL+bAo1NlXi6fWTIU58IYwXmq/fkCjZ
X-Google-Smtp-Source: AGRyM1sB+ZZctfcc2hpWAQfA5b9RAaKYKeojQ5Y9i7Ifqfi6Efd5sO6xGtHIlmDf3tUSliBTGfegwsIYW/2zPEPKn+I=
X-Received: by 2002:a05:6808:14d3:b0:335:7839:4e70 with SMTP id
 f19-20020a05680814d300b0033578394e70mr1538124oiw.228.1656497086227; Wed, 29
 Jun 2022 03:04:46 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a4a:cf03:0:0:0:0:0 with HTTP; Wed, 29 Jun 2022 03:04:45
 -0700 (PDT)
From: ". fsmithred" <fsmithred@gmail.com>
Date: Wed, 29 Jun 2022 06:04:45 -0400
Message-ID: <CAPr39sqc1DFDVGoYBCH84CK4gA5KmQE9F5oJAzQAUCR78d1iJg@mail.gmail.com>
Subject: diversion of anacron not properly removed upon system install
To: submit@bugs.devuan.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,
	RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dyne.org
Package: refractainstaller-base
Version: 9.6.1 or earlier

live-config diverts /usr/sbin/anacron to disable it during live sessions.
Refractainstaller removes the diversion but does not rename the file,
This results in cron jobs not running. Logrotate fails to run and log
files continue to grow.

In /usr/bin/refractainstaller and /usr/bin/refractainstaller-yad, change this:
if [ -e /usr/sbin/anacron.orig.anacron ] ; then
        dpkg-divert --no-rename --remove /usr/sbin/anacron
        mv /usr/sbin/anacron.orig.anacron /usr/sbin/anacron
fi

to this:
if [ -e /usr/sbin/anacron.orig.anacron ] ; then
        rm -f /usr/sbin/anacron
        dpkg-divert --rename --remove /usr/sbin/anacron
fi

To fix an installed system, run:
    rm -f /usr/sbin/anacron
    mv /usr/sbin/anacron.orig.anacron /usr/sbin/anacron
    /etc/init.d/anacron restart

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri May 3 12:22:52 2024;