Public bug reported:

Binary package hint: dhcp3-server

There's a problem when trying to setup dhcp3-server with debconf, as the
debconf-settings are overwritten by dhcp3-server on purpose.

What you would expect:
1. setup debconf settings, for example with debconf-set-selections
2. run dpkg-reconfigure -fnoninteractive dhcp3-server
3. have debconf settings turned into dhcp3-server settings.

What happens instead is:
1. setup debconf settings
2. run dpkg-reconfigure -fnoninteractive dhcp3-server
3. have debconf-settings reflect the original dhcp3-server settings
again (i.e. we're back where we were before).

debian/dhcp3-server.config in fact reads:
# Read current configuration - the user might not use dpkg-reconfigure
# to change /etc/default/dhcp3-server, so we need to do this to
# preserve the configuration.
if [ -r ${INITCONFFILE} ]; then
        . ${INITCONFFILE}
        db_set dhcp3-server/interfaces "${INTERFACES}"
fi

I know what the developer means to do here, but the path that was taken
makes any use of debconf essentially useless.

** Affects: dhcp3 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
dhcp3-server misuses debconf
https://launchpad.net/bugs/66689

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to