Your message dated Mon, 21 Apr 2014 09:41:13 +0000
with message-id <[email protected]>
and subject line Bug#720584: fixed in sysvinit 2.88dsf-55
has caused the Debian Bug report #720584,
regarding initscripts.postinst: wrong --compare-versions checks (causing 
debootstrap fakechroot failure)
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
720584: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720584
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: initscripts
Version: 2.88dsf-43
Severity: important
Tags: d-i patch

Dear Maintainer,

I'm unsuccessfully trying to use debirf to create a Debian testing initrd,
i.e. using debootstrap in fakechroot mode.

   * What led up to the situation?

debootstrap fails, with an sh -ex enabled debootstrap.log containing:

+ info CONFIGURING Configuring %s... initscripts
+ local name=CONFIGURING
+ local fmt=Configuring %s...
+ shift
+ shift
+ [  ]
+ printf I: Configuring %s...\n initscripts
+ expect=installed
+ read status pkg qstate
sed: couldn't open temporary file /etc/default/sedUlNpID: Permission denied
dpkg: error processing initscripts (--configure):
 subprocess installed post-installation script returned error exit status 4
+ [ status: = EXITCODE ]
+ [ : error : subprocess installed post-installation script returned error exit
status 4 = installed ]


I then did
debirf enter <config> (enter chroot)
and there did a manual
dpkg -D777 --configure initscripts
and then
sh -x /var/lib/dpkg/info/initscripts.postinst configure
which both successfully exhibited the sed failure above.

Narrowing it down some more via a
strace -f sed -i 's:foobar:foobaz:' /etc/default/rcS|less
showed

open("/etc/default/sedO6lzxA", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = -1 
EACCES (Permission denied)
umask(022)                              = 0700
write(2, "sed: ", 5sed: )                    = 5
write(2, "couldn't open temporary file /et"..., 70couldn't open temporary file 
/etc/default/sedO6lzxA: Permission denied) = 70
write(2, "\n", 1

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Nothing.

   * What was the outcome of this action?

Complete debirf (debootstrap) failure so far, for any install of Debian testing.
== "WTF" ==

This failure was not avoided, due to postinst improperly deciding
to enter the sed fixup section despite it being an initial-install,
thus dpkg --compare-versions with empty $PREV_VER ought to have been false
(see dpkg(1)).

Or, to put it more clearly, this perhaps unfixable permission failure
(see also related bugs #596284 / #694986 / #649148 ) would at least
have been avoided in *my* situation of an initial-install -
*if* the version checks had been correct.


   * What outcome did you expect instead?

Given that I expect debootstrap to be an absolute hotpath
(thousands of server installs) this should have Nothing But Worked.

Will soon try non-fakechroot mode of debootstrap instead,
since I'm hopeful that this will avoid the Permission Denied issue.
I'm quickly running out of ideas on how to get a Debian testing debootstrap
up and running, however, since I'm unsure whether I'm able to locally supply a
custom-patched package, or use any other suitable methods to avoid that failure.
There are several similar Internet reports about debootstrap-related problems
in this area.


This reportbug template produced by host system (aptosid 2013-01),
not semi-bootstrapped one - some info may be slightly(!) mismatching.



Untested patch included here.
It corrects the comparison operators where suitable, and only there!
(some others further below talk of those being necessary
for both specific version ranges and initial-install empty-string, too)
With this patch it means that postinst now depends on solid availability
of the possibly too modern lt-nl variants (perhaps that kind of dpkg support
may happen to be not old enough?).

Thank you for maintaining a very important and thus sizeable core package!

Andreas Mohr

--- initscripts.postinst.orig   2013-08-23 15:39:09.021852346 +0200
+++ initscripts.postinst        2013-08-23 15:41:39.228899560 +0200
@@ -61,16 +61,16 @@
 }
 
 # In 2.88dsf-23 the "mountoverflowtmp" script was dropped entirely.
-if dpkg --compare-versions "$PREV_VER" lt "2.88dsf-23" ; then
+if dpkg --compare-versions "$PREV_VER" lt-nl "2.88dsf-23" ; then
         update-rc.d -f mountoverflowtmp remove >/dev/null
 fi
 # In 2.88dsf-41+jessie1 the "mtab.sh" script was dropped entirely.
-if dpkg --compare-versions "$PREV_VER" lt "2.88dsf-41+jessie1" ; then
+if dpkg --compare-versions "$PREV_VER" lt-nl "2.88dsf-41+jessie1" ; then
         update-rc.d -f mtab.sh remove >/dev/null
 fi
 
 # Comment out obsolete options in rcS.
-if dpkg --compare-versions "$PREV_VER" lt "2.88dsf-23" ; then
+if dpkg --compare-versions "$PREV_VER" lt-nl "2.88dsf-23" ; then
     if [ -f /etc/default/rcS ]; then
        sed -i \
 -e 's:^\(RAMRUN=.*\)$:#\1 # OBSOLETE; see /etc/default/tmpfs and tmpfs(5).:' \


-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)

Kernel: Linux 3.9-0.slh.4-aptosid-686 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initscripts depends on:
ii  coreutils       8.13-3.3
ii  debianutils     4.3.4
ii  libc6           2.17-92
ii  lsb-base        4.1+Debian9
ii  mount           2.20.1-5.3
ii  sysv-rc         2.88dsf-41
ii  sysvinit-utils  2.88dsf-41

Versions of packages initscripts recommends:
ii  e2fsprogs  1.42.5-1.1
ii  psmisc     22.20-1

initscripts suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: sysvinit
Source-Version: 2.88dsf-55

We believe that the bug you reported is fixed in the latest version of
sysvinit, which is due to be installed in the Debian FTP archive.

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.
Petter Reinholdtsen <[email protected]> (supplier of updated sysvinit 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.8
Date: Mon, 21 Apr 2014 10:12:00 +0200
Source: sysvinit
Binary: sysvinit sysvinit-core sysvinit-utils sysv-rc initscripts bootlogd
Architecture: source amd64 all
Version: 2.88dsf-55
Distribution: experimental
Urgency: medium
Maintainer: Debian sysvinit maintainers 
<[email protected]>
Changed-By: Petter Reinholdtsen <[email protected]>
Description: 
 bootlogd   - daemon to log boot messages
 initscripts - scripts for initializing and shutting down the system
 sysv-rc    - System-V-like runlevel change mechanism
 sysvinit   - System-V-like init utilities - metapackage
 sysvinit-core - System-V-like init utilities
 sysvinit-utils - System-V-like utilities
Closes: 641669 720584 745260
Changes: 
 sysvinit (2.88dsf-55) experimental; urgency=medium
 .
   [ Gabriele Giacone ]
   * sysv-rc:
     - On hurd, fix hurd-console addition to inittab if inittab is already
       existent and fix getty pathnames in commented out lines as well
       (Closes: #745260).
 .
   [ Petter Reinholdtsen ]
   * Drop sysv-rc-conf as suggests.  It do not work with dependency based
     boot ordering.
   * Adjust initscripts.postinst to use --compare-versions checks that
     cause relevant code to only run on upgrades, and not on first time
     install, fixing debootstrap fakechroot failure (Closes: #720584).
     Patch from Andreas Mohr.
   * Add 'status' support to all init.d scripts (Closes: #641669).
     Based on patch from Peter Eisentraut.
Checksums-Sha1: 
 e293582d9972ca5c9b49ef6d89d79b9df2bbdce6 1781 sysvinit_2.88dsf-55.dsc
 7abfc6e994874b8e3e1ac26cfac0a68b650d3ab9 149320 
sysvinit_2.88dsf-55.debian.tar.xz
 f8556e0f8027744ba0d77537fe0d328516528305 82768 sysvinit_2.88dsf-55_amd64.deb
 c9b2cda8f3fbabf542face9c82f4d799bb613387 130224 
sysvinit-core_2.88dsf-55_amd64.deb
 449c53f26f7f503234f868d6033e5708ce5cbd90 83102 
sysvinit-utils_2.88dsf-55_amd64.deb
 546edf97295f8b8d0a535627c123f3c9642a8db0 81614 sysv-rc_2.88dsf-55_all.deb
 7dc91090663aed5ea97046a714c5efa63388a3a6 85796 initscripts_2.88dsf-55_amd64.deb
 af5f950f1ae818ec4c4dbd922683b92309b8c6a9 57914 bootlogd_2.88dsf-55_amd64.deb
Checksums-Sha256: 
 ccd1b39346397ffc7051daefdabe4efe5d6b4ca0d5c2c2e8e2d3232310f5c111 1781 
sysvinit_2.88dsf-55.dsc
 589245ebebe6f61d758a7b5a08b6f263d0267aa9c2f4f0da62453d49bbe8821e 149320 
sysvinit_2.88dsf-55.debian.tar.xz
 ce3e111159a2b6aaa37ec2a84a53abf3f640bf0a7963b0ff556e23edb034860d 82768 
sysvinit_2.88dsf-55_amd64.deb
 809bbc35c9f3413164d7edad0ad9e9f224dcc70e42d56f16b190192e0e64c35b 130224 
sysvinit-core_2.88dsf-55_amd64.deb
 055602fc01fe50ebf7b337e61e454ac0311b5cf6344c9458fc367304ba336f5c 83102 
sysvinit-utils_2.88dsf-55_amd64.deb
 4a59be2f7edcaa66728efe0f1345f63cdaf109d1f4199f7def7c6b19deacea87 81614 
sysv-rc_2.88dsf-55_all.deb
 d95cc2a88c676097bdfc794b938f07f97cf9ca8a7b7dc0830eb1c0659a6d6a9b 85796 
initscripts_2.88dsf-55_amd64.deb
 07ddd3ac56de57c6ecb61bf2318c90206d7dcb5b6ad479cc962548a666594f3d 57914 
bootlogd_2.88dsf-55_amd64.deb
Files: 
 29a09e9605fc772485132dff0aa4e9c0 1781 admin required sysvinit_2.88dsf-55.dsc
 4dbfab5a8b87b0fa13b5a3eebf6f1c48 149320 admin required 
sysvinit_2.88dsf-55.debian.tar.xz
 39e1281f5010c88f1b4a4591220901ce 82768 admin required 
sysvinit_2.88dsf-55_amd64.deb
 ff52ba2ea20a98b1b43454398a8bd624 130224 admin required 
sysvinit-core_2.88dsf-55_amd64.deb
 c89f8199948f5b94da96264e6116718f 83102 admin required 
sysvinit-utils_2.88dsf-55_amd64.deb
 6d05a7c9db67d42d852579e499e650fb 81614 admin required 
sysv-rc_2.88dsf-55_all.deb
 2c9903ff48445f0656fe366f3284b5c7 85796 admin required 
initscripts_2.88dsf-55_amd64.deb
 0454240492e20501933b49b6cb9ec684 57914 admin optional 
bootlogd_2.88dsf-55_amd64.deb

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

iD8DBQFTVNPP20zMSyow1ykRAqY6AKDiknKajVjo1tydLLeo7puW0gh2IgCfb4tX
a0C0ijYFqSLNPB/9S5j0hpc=
=0aW3
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

Reply via email to