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

Bug#496130: base-installer: apt-install'ed packages do not have their debconf questions translated



On Friday 22 August 2008, Jérémy Bobbio wrote:
> The issue we have currently with mdadm (see #493099) made me realize
> that the debconf question it displays is not translated.
>
> As far as I have understood, this is due to the fact that mdadm is
> installed before locales in the target system, but I did not look into
> this further.

It is actually a side-effect of my changes to get rid of all those 
annoying perl warnings. I forgot that mdadm has a debconf template while 
making those changes.

The cause is that bootstrap-base postinst sets:
    # Avoid locale related errors during package installations
    export IT_LANG_OVERRIDE=C

This gets unset during post_install_hooks():
    # locales will now be installed, so unset
    unset IT_LANG_OVERRIDE

But this assumes that packages installed in the chroot "early" are 
non-interactive.

The easiest way to solve this issue is probably to do:
+++ b/packages/base-installer/debian/bootstrap-base.postinst
@@ -136,8 +136,8 @@ waypoint 1  setup_dev
 waypoint 1     configure_apt_preferences
 waypoint 1     configure_apt
 waypoint 3     apt_update
-waypoint 2     install_filesystems
 waypoint 5     post_install_hooks
+waypoint 2     install_filesystems
 waypoint 1     pick_kernel
 waypoint 20    install_linux
 waypoint 10    install_extra

Cheers,
FJP



Reply to: