[Bug 1100681] Re: skip a step you want, and reduce the language selection

Colin Watson cjwatson at canonical.com
Tue Jan 22 17:55:51 UTC 2013


Could you make these two separate bugs, please?  I expect it's quite
likely that we might fix these in separate changes, so they should be
tracked independently.

1)
For a first cut, I'd suggest doing this by implementing the "plugin_skip_page" method on the appropriate PluginUI subclasses.  You can have them check debconf preseeding (e.g. ubiquity/skip/prepare) for whether to do this; in fact, it might even make sense to have a default implementation of plugin_skip_page on PluginUI itself that looks up a debconf template based on the page name.

It may be that in some cases this will turn out not to work, for example
if there's some specific reason for the plugin's filtered command to run
even when it's been entirely preseeded.  In that case, get in touch with
me and we can talk through doing something more complex related to
automatic mode.

2)
Preseeding ubiquity/only-show-installable-languages to true may turn out to be enough for you.  If it isn't, I suggest looking at how that's implemented (start at ubiquity/plugins/ubi-language.py:Page.run and also see ubiquity/i18n.py:get_languages) and doing similar filtering based on a new preseedable debconf template that lists the language codes that should be displayed.

** Changed in: ubiquity (Ubuntu)
       Status: Confirmed => Triaged

** Changed in: ubiquity (Ubuntu)
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1100681

Title:
  skip a step you want, and reduce the language selection

Status in “ubiquity” package in Ubuntu:
  Triaged

Bug description:
  This is used for a Chinese customized release named "UbuntuKylin" . We
  want to skip some steps  and reduce the language selection.

  (1)Skip some steps:
  UbuntuKylin need to skip a step we want by configuring file, rather than through a line configuration to skip several steps,
  For example, UbuntuKylin need to retain the "Welcome" page for selecting language, but skip the "Preparing to install Ubuntu" interface. Also, it needs to skip the keyboard selection page, the default is U.S. keyboard, rather than select it in installing process.

  (2)Reduce the language selection:
  As mentioned above,UbuntuKylin need to retain the  language selection page,but it only needs three languages, they are Simplified Chinese, Traditional Chinese and English, the default is Simplified Chinese.

  ProblemType: Requirement for UbuntuKylin(Bug)
  DistroRelease: Ubuntu 13.04
  Package: ubiquity_2.13.9
  ProcVersionSignature: Ubuntu 3.8.0-0-generic
  Uname: Linux 3.8.0-0-generic i686
  Date: Thu, 17 Jan 2013 16:53:50

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1100681/+subscriptions




More information about the foundations-bugs mailing list