HELP: installing runit in chroot environment fails


#1

My overall goal is to bootstrap a new ubuntu image and during the
bootstrap process use chef as soon as possible to finish customizing
the image.

I’m getting the following error when I attempt to install runit in my
chroot environment. I saw Joshua Timberman had submitted a patch for
this to the ubuntu team
(https://bugs.launchpad.net/ubuntu/+source/runit/+bug/406621), and it
looks like the version of runit being installed is a newer version
than the one he originally filed the bug for.

Any ideas on how to resolve this? I think in the meantime I may switch
back to the standard init mode instead of trying to use runit.

Here is my output and error:

(chroot) root@vagrant-karmic:/# apt-get install -y runit
Reading package lists… Done
Building dependency tree
Reading state information… Done
runit is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up runit (2.0.0-1ubuntu3.1) …
start: Unknown job: runsvdir
dpkg: error processing runit (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
runit
E: Sub-process /usr/bin/dpkg returned an error code (1)
(chroot) root@vagrant-karmic:/#