Package: nis Version: 3.13-2 Hi,
I'm trying to automate setup of various packages using debconf/d-i preseeding. Unfortunately, nis is a bit problematic, as it happily clobbers nis/domain and nis/not-yet-configured debconf values that have been set before the package is configured. First, the postinst checks whether /etc/defaultdomain is set, and if not, resets nis/domain, sets the default value to `hostname --fqdn`, and prompts the user for the value. >From debconf-devel(7): * Avoid asking questions in the postinst. Instead, the config script should ask questions using debconf, so that pre‐configu‐ ration will work. What this probably should do instead is, in the config script, prompt the user (using `hostname --fqdn` as the default if nis/domain is not already set). In the postinst, get this value and overwrite /etc/defaultdomain with it. This way, people can dpkg-reconfigure nis and actually be able to change this value. Ditto for nis/not-yet-configured, which shouldn't care whether the machine has actually be configured yet; the note should be displayed when the package is first installed, and never again. People who can figure out how to configure nis before installing the package can also figure out how to preseed the note to not display, if they find it annoying. If you want patches for this, let me know. I'm also interested in seeing things like #231808 fixed; I can provide initial patches if necessary.