On Mon, Sep 15, 2025 at 02:57:01PM +0000, laurent wrote:
This time I looked a bit more in detail debian/isc-dhcp-relay.postinst does :db_get isc-dhcp-relay/options || true OPTIONS="${RET}" TMPFILE=`mktemp -q /tmp/dhcp.config.XXXXXX` sed -e "s/^[[:space:]]*OPTIONS[[:space:]]*=.*/OPTIONS=\"${OPTIONS}\"/" \ <${INITCONFFILE} >${TMPFILE} cp ${TMPFILE} ${INITCONFFILE} rm ${TMPFILE} So this unconditionnally overwrite from db_get to /etc/default/isc-dhcp-relay without telling the user.
It reads the information from /etc/default/isc-dhcp-relay in debian/isc-dhcp-relay.config and puts in the database. It then prompts the user (presenting the values read in from the defaults file), and then the postinst pokes the potentially changed values back into the defaults file.
Barring bugs, this looks like proper handling of debconf-configured parameters. Please investigate why this does not work as advertised.
That being said, please migrate away from isc-dhcp-relay; Debian 13 is likely the last debian release to feature that package. It has been dead upstream already for years.
Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421

