Bug#596284: sysvinit: Doesn't install with debootstrap --variant=fakechroot

2012-04-17 Thread Roger Leigh
tags 596284 + pending
thanks

On Thu, Apr 12, 2012 at 07:31:25PM -0400, Michael Gilbert wrote:
 severity 596284 important
 tag 596284 patch
 thanks
 
 i took a look at this.  the issue is that even though initctl is now
 in /run, the postinst continues to try to create a symlink for the old
 initctl in /dev.  attached is a patch that detects the situation when
 there isn't an old initcl and avoids the symlink attempt.  see
 attached.

Hi Mike,

Many thanks for the patch; I've applied it to our git repo for the
next upload.


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please GPG sign your mail.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#596284: sysvinit: Doesn't install with debootstrap --variant=fakechroot

2012-04-12 Thread Michael Gilbert
severity 596284 important
tag 596284 patch
thanks

i took a look at this.  the issue is that even though initctl is now
in /run, the postinst continues to try to create a symlink for the old
initctl in /dev.  attached is a patch that detects the situation when
there isn't an old initcl and avoids the symlink attempt.  see
attached.

best wishes,
mike


sysvinit.patch
Description: Binary data


Bug#596284: sysvinit: Doesn't install with debootstrap --variant=fakechroot

2012-02-16 Thread Tzafrir Cohen
On Wed, Jan 11, 2012 at 09:39:55AM +, Roger Leigh wrote:
 On Fri, Sep 10, 2010 at 01:13:11AM +0200, Piotr Roszatycki wrote:
  Package: sysvinit
  Version: 2.88dsf-12
  Tags: patch
  
  The sysvinit package can not be installed with debootstrap
  --variant=fakechroot because of:
 
 The current sysvinit git
 (http://people.debian.org/~rleigh//sysvinit/)
 creates initctl in /run rather than /dev.  I'm not sure why
 you get the permission denied error in /dev, but it may be the
 case that this will fix things.  If not, I'm sure we can
 implement your patch (or an equivalent using ischroot) for /run.
 
 It would be good to know if the above package solves the problem
 first, however.

Sadly it doesn't. Current (22) version fails running:

ln -s $INITCTL $OLDINITCTL.new

This is still present in the git version.

fakechroot does not pretend pathes under /dev are in the faked chroot,
and hence basically any attempt to modify the file system there will fail.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#596284: sysvinit: Doesn't install with debootstrap --variant=fakechroot

2012-02-16 Thread Tzafrir Cohen
On Thu, Feb 16, 2012 at 04:16:22PM +, Tzafrir Cohen wrote:
 On Wed, Jan 11, 2012 at 09:39:55AM +, Roger Leigh wrote:

  It would be good to know if the above package solves the problem
  first, however.
 
 Sadly it doesn't. Current (22) version fails running:
 
   ln -s $INITCTL $OLDINITCTL.new
 
 This is still present in the git version.

Specifically, 2.88dsf-18 installed fine, but 2.88dsf-19 fails to install
inside a fakechroot.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#596284: sysvinit: Doesn't install with debootstrap --variant=fakechroot

2012-01-11 Thread Roger Leigh
On Fri, Sep 10, 2010 at 01:13:11AM +0200, Piotr Roszatycki wrote:
 Package: sysvinit
 Version: 2.88dsf-12
 Tags: patch
 
 The sysvinit package can not be installed with debootstrap
 --variant=fakechroot because of:

The current sysvinit git
(http://people.debian.org/~rleigh//sysvinit/)
creates initctl in /run rather than /dev.  I'm not sure why
you get the permission denied error in /dev, but it may be the
case that this will fix things.  If not, I'm sure we can
implement your patch (or an equivalent using ischroot) for /run.

It would be good to know if the above package solves the problem
first, however.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please GPG sign your mail.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#596284: sysvinit: Doesn't install with debootstrap --variant=fakechroot

2010-09-09 Thread Piotr Roszatycki
Package: sysvinit
Version: 2.88dsf-12
Tags: patch

The sysvinit package can not be installed with debootstrap
--variant=fakechroot because of:

Setting up sysvinit (2.88dsf-12) ...
sysvinit: creating /dev/initctl
mkfifo: cannot create fifo `/dev/initctl': Permission denied
dpkg: error processing sysvinit (--configure):
 subprocess installed post-installation script returned error exit status 1

I suggest that sysvinit.postinst shouldn't create this file if the
fakechroot environment is detected:

--- sysvinit.postinst 2010-08-15 21:38:01.0 +0200
+++ sysvinit.postinst.fakechroot 2010-09-10 01:11:28.926648496 +0200
@@ -28,7 +28,7 @@
 #
 # Check /dev/initctl
 #
-if [ $INITCTL ]  [ ! -p $INITCTL ]
+if [ $INITCTL ]  [ ! -p $INITCTL ]  [ $FAKECHROOT != true ]
 then
  echo sysvinit: creating $INITCTL
  rm -f $INITCTL


There is no easy way to override it in fakechroot or debootstrap and I'm
afraid that sysvinit package it is only reason that Debian sid can't be set
up with fakechroot variant.

Thank you.

-- 
 .''`.Piotr Roszatycki
: :' :mailto:piotr.roszaty...@gmail.com
`. `' mailto:dex...@debian.org
  `-
bsp; `-