=== shadeslayer is now known as shadeslayer_ | ||
=== shadeslayer_ is now known as shadeslayer | ||
CarlFK | in a script called from late_command, (and in a chroot /target) how can I tell what release is being installed? | 16:57 |
---|---|---|
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 | 16:58 |
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 | 17:02 |
=== shadeslayer_ is now known as shadeslayer | ||
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:19 |
CarlFK | when does $() get evaluated? | 19:20 |
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 | 19:22 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!