>>>>> On Mon, 27 Nov 2017 15:10:25 +0000, Chris Nix <[email protected]> said:
> 1. I had a preinst in sources.list that used 'envsubst' to replace
strings like "${some_variable}" from the environment
> 2. After upgrade, source.list are copied with fcopy -S, which will
replace strings like "{%some_variable%}" from the environment and ignores
preinst script.
> 3. It took considerable time looking over sources in order to understand
what happened here.
This is very hard to fix. If people are using a newer FAI version, but
use still the old examples of the config space (here cs from 5.4 and
FAI 5.5) this may happen. If you read the NEWS file
/usr/share/doc/fai-client/NEWS.gz you will see some info about this
change. Not very clear, but someone complained that I was using the
Debian.NEWS to often. That's why you do not get the news dunring
package update any more.
> 1. I think there's fcopy document needed about the -S option
> and the expected syntax for substitutions (maybe I've missed
> this).
man fcopy
> 2. It seems reasonable to do other things than variable substitution in
preinst script. Couldn't FAI continue to execute preinst after -S
substitutions so that 5.5 is not a breaking change in
> this issue? (I've not thought through the complications that you
might have spotted here).
If you think this would be usefull, than my job is to implement
it. It's not very easy but will be possible.
--
regards Thomas