[Pkg-sysvinit-devel] Bug#687399: sysvinit.postinst fails under debootstrap --variant=fakechroot when /dev/initctl exists

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Sep 12 13:03:26 UTC 2012


Package: sysvinit
Version: 2.88dsf-31
Severity: normal

Control: found 2.88dsf-32

If i have a GNU/Linux system with /dev/initctl present, and i
debootstrap with --variant=fakechroot as a non-privileged user, the
debootstrap fails with :

Setting up sysvinit (2.88dsf-32) ...
sysvinit: creating /run/initctl
ln: failed to create symbolic link `/dev/initctl.new': Permission denied
dpkg: error processing sysvinit (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up e2fsprogs (1.42.5-1) ...
Errors were encountered while processing:
 sysvinit

This appears to be because this stanza is not wrapped in an ischroot test:

               # Replace old control channel (if present) with symlink
                if [ -e "$OLDINITCTL" ]; then
                        ln -s "$INITCTL" "$OLDINITCTL.new"
                        mv "$OLDINITCTL.new" "$OLDINITCTL"
                fi

I suspect the same issue might be true for this other stanza later in
the postinst:

        # Remove old pipe if present.  No longer in use after re-exec.
        if [ "$OLDINITCTL" ] && [ -p "$OLDINITCTL" ]
        then
                rm -f "$OLDINITCTL"
        fi

Regards,

        --dkg


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sysvinit depends on:
ii  debianutils     4.3.2
ii  initscripts     2.88dsf-31
ii  libc6           2.13-35
ii  libselinux1     2.1.9-5
ii  libsepol1       2.1.4-3
ii  sysv-rc         2.88dsf-31
ii  sysvinit-utils  2.88dsf-31

sysvinit recommends no packages.

sysvinit suggests no packages.

-- no debconf information



More information about the Pkg-sysvinit-devel mailing list