Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm struggling with Ubiquity for a customized live-cd based on Ubuntu and Xfce. Here's the thing : I removed all languages except FR (french) from the iso, everything works perfectly if I make an offline installation. Everything is in french, the post-install language tool only shows me the FR languages (french and canadian), without any extra packages to download.

But things are getting wierd when I install with a internet connection, Ubiquity wants to install EN packages, even if I decided to make a french installation. And of course, he wants to download ~150mo of packages.

I looked up in /usr/lib/ubiquity/localechooser/* and usr/share/ubiquity/localechooser-apply, but I can't see where does Ubiquity choose to add EN to my languages.

Does anyone have an idea to prevent Ubiquity to download and install EN languages in addition of selected language ? I could of course let the EN packages on the iso, but in my opinion, it's a waste of space, since I don't need them.

Thank you !

share|improve this question
    
Do you consider this workaround to be a solution? If so, then you should post it as an answer (once you're able to, you may have to wait a little bit). If you don't need more solutions, you can even accept your own answer two days later (a gray check mark will appear to the left of it, which you can click). If you do need more solutions, then just don't accept your answer. –  Eliah Kagan Sep 7 '13 at 17:10
1  
Ok I will post in 5 hours as a response. Thanks –  MrVaykadji Sep 7 '13 at 17:35

1 Answer 1

up vote 0 down vote accepted

I found a workaround without having to play with preseeds.

Locate on the iso squashfs: etc/lib/ubiquity/localechooser/localechooser

    # Always support English (unless preseeded otherwise), so that we
    # get English language packs etc.
    if [ "$english" ]; then
        db_set $tpl_supportedlocales "$new"
    else
        db_set $tpl_supportedlocales "${new:+$new, }en_US.UTF-8"
    fi
}

I changed the following lines :

    # Always support English (unless preseeded otherwise), so that we
    # get English language packs etc.
    if [ "$english" ]; then
        db_set $tpl_supportedlocales "$new"
    else
        # MODIFIED, original line is commented below
        # db_set $tpl_supportedlocales "${new:+$new, }en_US.UTF-8"
        # Either or not the language is english, keep only the selected language.
        db_set $tpl_supportedlocales "$new"
    fi
}

It works great.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.