Bug#671911: nbd-server: provide mechanism to create /etc/nbd-server/config
On Mon, May 07, 2012 at 09:09:28PM -0700, Vagrant Cascadian wrote: Alternately, if it would always create /etc/nbd-server/config with the includedir option, and then just not start if no exports were defined, that would be even better. That's actually what happens now: if there are no configs defined, the initscript will start nbd-server, but it will exit since, indeed, nothing's there. There's really no reason why you can't copy that template file to /etc/nbd-server/config and get on with it, other than policy doesn't allow you to. Currently, the nbd-server postinst writes the exports to the main config file rather than to config file snippets, because I'd already written things that way and I didn't see an immediate reason to change it; but I suppose it doesn't make much sense anymore to do things this way. I'll look into this. -- The volume of a pizza of thickness a and radius z can be described by the following formula: pi zz a -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#671911: nbd-server: provide mechanism to create /etc/nbd-server/config
Package: nbd-server Version: 1:2.9.24-3 Severity: wishlist X-Debbugs-CC: alk...@gmail.com LTSP is getting all sorts of great support for NBD(Yay!), but we're still lacking a way to enable nbd-server by default. So we can drop files in /etc/nbd-server/conf.d, but unless /etc/nbd-server/config is present (and appropriately configured), it will do nothing. While the administrator can run dpkg-reconfigure nbd-server, it would be ideal if the logic that generates the /etc/nbd-server/config could be moved to a script runnable from other packages postinst scripts. Without that, I don't see a policy-compliant way of creating /etc/nbd-server/config from, say, ltsp-server.postinst. It looks like what's present in /usr/share/nbd-server/nbd-server.conf.tmpl would be perfect (since it includes includedir=/etc/nbd-server/conf.d), and then ltsp could drop or create files in /etc/nbd-server/conf.d as needed. If there were an update-nbd-server-config script that basically implemented parts of what's in nbd-server's postinst, that would be great. Alternately, if it would always create /etc/nbd-server/config with the includedir option, and then just not start if no exports were defined, that would be even better. live well, vagrant -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org