Setting a placeholder value is a great idea, it simplifies the early_command since the seen flag no longer needs to be set.
Thanks for the tip Philip. > On Feb 16, 2022, at 4:38 PM, Philip Hands <p...@hands.com> wrote: > > Glen Huang <hey...@gmail.com> writes: > >> Thanks to Cyril Brulebois’s tip that I could use DEBCONF_DEBUG to debug >> debconf, I found out the seen flag should be set in order for db_input to >> pick up the value. >> >> Case solved, thanks to everyone helped! > > I was wondering about that, but didn't see my code setting lots of seen > flags, so wasn't sure. > > I now realise that the reason for that is that I generally preseed the > things I don't want to be asked, even if I'm going to set them via > script, and the act of preseeding them to a place-holder value also sets > the seen flag. Then you get to override that in a script without > worrying about also setting the seen flag at that point. > > Cheers, Phil. > -- > |)| Philip Hands [+44 (0)20 8530 9560] HANDS.COM Ltd. > |-| http://www.hands.com/ http://ftp.uk.debian.org/ > |(| Hugo-Klemm-Strasse 34, 21075 Hamburg, GERMANY