Steve Langasek wrote: > Would you recommend this "best effort" approach for the present case? > Will that be effective for d-i, or do we have to worry about > libpam-runtime's postinst completing before debconf is available? Basically the approach is to check to see if /usr/share/debconf/confmodule exists. If so, source it and use debconf. If not, check if DEBIAN_FRONTEND=[Nn]oninteractive, if so use sane defaults. Else you may ask questions using echo and read or something. Alternatively, make the second two cases always use sane defaults. If libpam-runtime took over the md5 question, it would be installed by debootstrap, during which time the debconf frontend would be noninteractive and debconf may or may not be available yet. Then in the second stage install, base-config would dpkg-reconfigure it (before it reconfigures passwd probably). At that point debconf would be available so it could ask its question and its postinst deal with the answer. -- see shy jo
Attachment:
pgpq0zEyqYDlc.pgp
Description: PGP signature