I'm building an install key for a Debian based system. The install key basically copies a disk image onto the system and then in a chroot installs a number of packages that are copied onto the install key during the build process.
One of the things the install key does is wipe the existing ssh keys (so we don't create a bunch of "identical" ssh servers). To try and stick with the debian way of doing things I run dpkg-reconfigure openssh-server to regenerate the keys but at the end of the reconfigure it attempts to restart the server which of course isn't running in the install key chroot.
Is it possible to tell debconf to reconfigure but don't restart services?