[16:57] <CarlFK> in a script called from late_command, (and in a chroot /target) how can I tell what release is being installed?
[16:58] <CarlFK> I use the same script for all, and have various "elif [ -f /etc/gdm/gdm.conf-custom ]; then" which I think would be better if I checked release
[17:02] <cjwatson> debconf-get mirror/suite   # but do that outside the chroot/target and pass it in using an environment variable or whatever
[17:02] <CarlFK> thanks
[19:19] <CarlFK> d-i preseed/late_command string cd /target/tmp && wget http://$url/lc/late.sh && chmod u+x late.sh && chroot /target /tmp/late.sh $(debconf-get mirror/suite) $(debconf-get passwd/username)
[19:20] <CarlFK> when does $() get evaluated?
[19:22] <CarlFK> and given I the answer seems to be "too early" what should I do?  I am guessing either quote it or wrap late.sh in another script that does what I want