Your message dated Fri, 17 Sep 2004 21:32:02 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#264451: fixed in debian-installer-utils 1.06
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 8 Aug 2004 22:34:22 +0000
>From [EMAIL PROTECTED] Sun Aug 08 15:34:22 2004
Return-path: <[EMAIL PROTECTED]>
Received: from 217-13-7-10.dd.nextgentel.com (minerva.hungry.com) [217.13.7.10] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1BtwFC-0006ZS-00; Sun, 08 Aug 2004 15:34:22 -0700
Received: from pere by minerva.hungry.com with local (Exim 3.35 #1 (Debian))
        id 1BtwFp-0006Fq-00; Mon, 09 Aug 2004 00:35:01 +0200
To: [EMAIL PROTECTED]
Subject: di-utils: apt-install should not start daemons
From: Petter Reinholdtsen <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
Sender: Petter Reinholdtsen <[EMAIL PROTECTED]>
Date: Mon, 09 Aug 2004 00:35:01 +0200
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,DRUGSPAM,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 


Package:  di-utils
Version:  1.00
Severity: important
Tags:     d-i

Packages installing daemons should not be allowed to start the daemon
inside /target/.  Packages installed with debootstrap will not do
this, because debootstrap replaces start-stop-daemon, but apt-install
do not do anything to avoid this.

See debian-boot thread "cardmgr start message during base install
(extra packages)" for a discussion around this issue.

Here is an untested patch with a proposed solution:

From: Per Olofsson
Subject: Re: cardmgr start message during base install (extra packages)
To: debian-boot
Date: Thu, 29 Jul 2004 18:09:17 +0200

Petter Reinholdtsen wrote:
> Here is a patch to divert start-stop-daemon.  Mostly unsteded, but
> half of it is cut-n-paste from my upgrade-testing script.

And here's an (untested) patch which also adds policy-rc.d
support. Furthermore it corrects a problem in your patch: it runs
cleanup code if apt-get fails.

Index: apt-install
===================================================================
--- apt-install (revision 18584)
+++ apt-install (working copy)
@@ -36,6 +36,42 @@
     fi
 fi
 
+# Create a policy-rc.d to stop maintainer scripts using invoke-rc.d from
+# running init scripts
+make_policy-rc.d() {
+       cat > /target/usr/sbin/policy-rc.d <<EOF
+#!/bin/sh
+exit 101
+EOF
+       chmod a+rx /target/usr/sbin/policy-rc.d
+}
+remove_policy-rc.d() {
+       rm -f /target/usr/sbin/policy-rc.d
+}
+
+# This way to make start-stop-daemon do not work on upgrades, when
+# start-stop-daemon is replaced with a new version.  I tried to use
+# dpkg-divert to solve this, but am not sure I got it right. [pere
+# 2004-07-29]
+make_dummy_start_stop_daemon() {
+       cat > /target/sbin/start-stop-daemon.dummy <<EOF
+#!/bin/sh
+echo 1>&2
+echo 'Warning: Fake start-stop-daemon called, doing nothing.' 1>&2
+exit 0
+EOF
+       chmod a+rx /target/sbin/start-stop-daemon.dummy
+       chroot /target dpkg-divert --add --local --rename /sbin/start-stop-daemon
+       ln -s start-stop-daemon.dummy /target/sbin/start-stop-daemon
+}
+remove_dummy_start_stop_daemon() {
+       rm /target/sbin/start-stop-daemon
+       chroot /target dpkg-divert --remove --local --rename /sbin/start-stop-daemon
+}
+
+make_policy-rc.d
+make_dummy_start_stop_daemon
+
 # Unset to avoid problems with packages using debconf.  This should
 # avoid the following error when installing dash:
 # "/var/lib/dpkg/info/ash/config: 1: Bad file descriptor"
@@ -59,8 +95,12 @@
     mount -t proc proc /target/proc
 fi
 
-DEBIAN_FRONTEND=noninteractive \
-chroot /target apt-get -y install $@ < /dev/null >> $log 2>&1
+if ! DEBIAN_FRONTEND=noninteractive \
+       chroot /target apt-get -y install $@ < /dev/null >> $log 2>&1; then
+       remove_dummy_start_stop_daemon
+       remove_policy-rc.d
+       exit 1
+fi
 
 # Undo the mounts done by the packages during installation.
 # Reverse sorting to umount the deepest mount points first.
@@ -77,4 +117,7 @@
 
 rm -f /tmp/mount.pre
 
+remove_dummy_start_stop_daemon
+remove_policy-rc.d
+
 exit 0

-- 
Pelle

---------------------------------------
Received: (at 264451-close) by bugs.debian.org; 18 Sep 2004 01:38:09 +0000
>From [EMAIL PROTECTED] Fri Sep 17 18:38:09 2004
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1C8UAz-0000n8-00; Fri, 17 Sep 2004 18:38:09 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1C8U54-0003dm-00; Fri, 17 Sep 2004 21:32:02 -0400
From: Joey Hess <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.51 $
Subject: Bug#264451: fixed in debian-installer-utils 1.06
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Fri, 17 Sep 2004 21:32:02 -0400
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Source: debian-installer-utils
Source-Version: 1.06

We believe that the bug you reported is fixed in the latest version of
debian-installer-utils, which is due to be installed in the Debian FTP archive:

debian-installer-utils_1.06.dsc
  to pool/main/d/debian-installer-utils/debian-installer-utils_1.06.dsc
debian-installer-utils_1.06.tar.gz
  to pool/main/d/debian-installer-utils/debian-installer-utils_1.06.tar.gz
di-utils-bootfloppy_1.06_i386.udeb
  to pool/main/d/debian-installer-utils/di-utils-bootfloppy_1.06_i386.udeb
di-utils-exit-installer_1.06_all.udeb
  to pool/main/d/debian-installer-utils/di-utils-exit-installer_1.06_all.udeb
di-utils-mapdevfs_1.06_i386.udeb
  to pool/main/d/debian-installer-utils/di-utils-mapdevfs_1.06_i386.udeb
di-utils-reboot_1.06_all.udeb
  to pool/main/d/debian-installer-utils/di-utils-reboot_1.06_all.udeb
di-utils-shell_1.06_i386.udeb
  to pool/main/d/debian-installer-utils/di-utils-shell_1.06_i386.udeb
di-utils-terminfo_1.06_all.udeb
  to pool/main/d/debian-installer-utils/di-utils-terminfo_1.06_all.udeb
di-utils_1.06_all.udeb
  to pool/main/d/debian-installer-utils/di-utils_1.06_all.udeb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <[EMAIL PROTECTED]> (supplier of updated debian-installer-utils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


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

Format: 1.7
Date: Fri, 17 Sep 2004 16:08:51 -0400
Source: debian-installer-utils
Binary: di-utils-terminfo di-utils-mapdevfs di-utils-shell di-utils-bootfloppy 
di-utils-reboot di-utils di-utils-exit-installer
Architecture: source all i386
Version: 1.06
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <[EMAIL PROTECTED]>
Changed-By: Joey Hess <[EMAIL PROTECTED]>
Description: 
 di-utils   - Miscellaneous utilities for the debian installer (udeb)
 di-utils-bootfloppy - Utilities for the debian installer boot floppy (udeb)
 di-utils-exit-installer - Exit installer (udeb)
 di-utils-mapdevfs - mapdevfs utility for the debian installer (udeb)
 di-utils-reboot - Reboot (udeb)
 di-utils-shell - Execute a shell (udeb)
 di-utils-terminfo - Terminfo entries needed by newt/slang in debian installer (udeb)
Closes: 264451
Changes: 
 debian-installer-utils (1.06) unstable; urgency=low
 .
   * Joey Hess
     - Make apt-install add a dummy start-stop-daemon and a policy-rc.d to
       prevent daemons from being started when packages are installed.
       Closes: #264451
     - Better cleanup if package install fails.
   * Updated translations:
     - German (de.po) by Dennis Stampfer
     - Greek, Modern (1453-) (el.po) by Greek Translation Team
     - French (fr.po) by French Team
     - Gallegan (gl.po) by Héctor Fenández López
     - Portuguese (Brazil) (pt_BR.po) by André Luís Lopes
     - Russian (ru.po) by Russian L10N Team
Files: 
 5568d4178f4c2c931f41204c7b6908b4 950 debian-installer standard 
debian-installer-utils_1.06.dsc
 d150dadb505ac395122982ffd3564a5f 39898 debian-installer standard 
debian-installer-utils_1.06.tar.gz
 810c6c41360e081dea8767bb72b1f108 5242 debian-installer standard 
di-utils-reboot_1.06_all.udeb
 5749b05cc59740e9a6c907146fccf19d 1834 debian-installer extra 
di-utils-exit-installer_1.06_all.udeb
 6464ec1a77a4cf3881aabf4138a939c1 4424 debian-installer standard di-utils_1.06_all.udeb
 dba7179b6f440bc1144224ac26d33710 2334 debian-installer standard 
di-utils-terminfo_1.06_all.udeb
 2b3df40c466d1ee59dbf1a9081db031a 13298 debian-installer standard 
di-utils-shell_1.06_i386.udeb
 d77dac5d94897f9c496830b43dcc0d98 2174 debian-installer standard 
di-utils-mapdevfs_1.06_i386.udeb
 c15ab5455e3b6e1883958c507a707be7 2140 debian-installer extra 
di-utils-bootfloppy_1.06_i386.udeb
package-type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBS4+J2tp5zXiKP0wRApRRAKC25U6JhNjaw6FLWR/LJVZZZTxoigCfdqfr
/EchufIVEC5LN/XyKc8chlg=
=h+kZ
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to