See ubiquity/scripts/plugininstall.py. I wrote all that nearly six
years ago so had largely forgotten :-)
libpaper1.config has to operate under the constraint that libpaper1
hasn't even been unpacked yet, so it does have to be pretty
conservative. It's certainly possible that you can do something easier
elsewhere; I'm really just saying that what we have now works well in
the installer context and I don't feel the need to change it. I don't
mind what language-selector does as long as it's consistent; your shell
script is at least simple.
Ah, sorry, you have to do something like this first:
sudo rm -f /etc/papersize defaultpaper | sudo debconf-communicate
sudo ucf --purge /etc/papersize
echo SET libpaper/
See ubiquity/ scripts/ plugininstall. py. I wrote all that nearly six
years ago so had largely forgotten :-)
libpaper1.config has to operate under the constraint that libpaper1
hasn't even been unpacked yet, so it does have to be pretty
conservative. It's certainly possible that you can do something easier
elsewhere; I'm really just saying that what we have now works well in
the installer context and I don't feel the need to change it. I don't
mind what language-selector does as long as it's consistent; your shell
script is at least simple.