[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debian ova instance generator


On Sun, Oct 06, 2013 at 09:49:12PM +0200, Lukas Anzinger wrote:
> I've seen that you stop dbus via invoke-rc.d because it's started from its
> postinst script.
> 
> There's a way to prevent the starting of services so you don't need to stop
> it: Just install https://github.com/grml/grml-policyrcd into the chroot, it
> will make "invoke-rc.d <foo> start" a NOP if run inside a chroot.

You can also just create usr/sbin/policy-rc.d as a shell script that
exits with 101, which may or may not be easier to deal with. Like
this:

cat <<EOF > "$rootdir/usr/sbin/policy-rc.d"
#!/bin/sh
exit 101
EOF
chmod a+x "$rootdir/usr/sbin/policy-rc.d"

Remember to delete it afterwards.

-- 
http://www.cafepress.com/trunktees -- geeky funny T-shirts
http://gtdfh.branchable.com/ -- GTD for hackers


References:
debian ova instance generatorheroxbd@xxxxxxxxxx
Re: debian ova instance generatorLukas Anzinger <l.anzinger@xxxxxxxxx>
Archive administrator: postmaster AT airelinux DOT org