Bruce Perens writes ("Re: pre-inst and post-inst scripts that start and stop daemons "): > > However, I'm wondering whether a more elegant and simple solution > > might just be for Bruce to run the cross-installation which a PATH > > environment variable that ensures that the version of > > start-stop-daemon it finds is a link to `true'. > > Clever. This is made somewhat more sloppy by the fact that the > script is running in a "chroot" context (dpkg --root, remember), and thus > I'd have to create the binary directory within the target filesystem.
Sort of true. dpkg doesn't do a chdir, though, so you can refer to files relative to the current directory. For example, ln -s /bin/true start-stop-daemon PATH=:$PATH dpkg --root=... Ian.