Bug#491737: oldsys-preseed: keep translations around
* Frans Pop <firstname.lastname@example.org> [2008-08-06 12:34]:
> That must be because anna has already been run before localechooser
> and thus "unused" translations have been deleted to save memory.
> To keep translations you'll have to unset DEBCONF_DROP_TRANSLATIONS.
> See src/lib/debian-installer/menu in rootskel.
Thanks for the hint. This was easier to implement than I thought.
Below are two patches:
1) rootskel: only export DEBCONF_DROP_TRANSLATIONS if it is not set.
This allows us to export DEBCONF_DROP_TRANSLATIONS=0 before 70menu
2) oldsys-preseed: export DEBCONF_DROP_TRANSLATIONS=0 if we're not in
With these patches applied, everything works as expected. In lowmem
mode, the translations are removed anything and the language question
is never asked. And in normal mode, the language question is asked
and oldsys-preseed will tell d-i to keep the translations.
I've tested both scenarios.
OK to apply?
--- rootskel/src/lib/debian-installer/menu (revision 54317)
+++ rootskel/src/lib/debian-installer/menu (working copy)
@@ -1,3 +1,5 @@
+if [ -z "$DEBCONF_DROP_TRANSLATIONS" ]; then
+ export DEBCONF_DROP_TRANSLATIONS=1
exec debconf -o d-i $MENU
--- debian-installer.d/S69keep-translations (revision 0)
+++ debian-installer.d/S69keep-translations (revision 0)
@@ -0,0 +1,4 @@
+if [ ! -e /var/lib/lowmem ]; then
+ export DEBCONF_DROP_TRANSLATIONS=0
--- debian/rules (revision 55023)
+++ debian/rules (working copy)
@@ -33,6 +33,7 @@
dh_install functions usr/lib/$(PACKAGE)
dh_install oldsys-preseed usr/bin
dh_install debian-installer-startup.d lib
+ dh_install debian-installer.d lib
rm -rf `find debian/$(PACKAGE) -name .svn`
binary-arch: build install