[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#491737: oldsys-preseed: keep translations around

* Frans Pop <elendil@planet.nl> [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
is run.

2) oldsys-preseed: export DEBCONF_DROP_TRANSLATIONS=0 if we're not in
lowmem mode.

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?

Martin Michlmayr
Index: rootskel/src/lib/debian-installer/menu
--- rootskel/src/lib/debian-installer/menu	(revision 54317)
+++ rootskel/src/lib/debian-installer/menu	(working copy)
@@ -1,3 +1,5 @@
 exec debconf -o d-i $MENU
Index: debian-installer.d/S69keep-translations
--- debian-installer.d/S69keep-translations	(revision 0)
+++ debian-installer.d/S69keep-translations	(revision 0)
@@ -0,0 +1,4 @@
+if [ ! -e /var/lib/lowmem ]; then
Index: debian/rules
--- 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

Reply to: