[Bug 1017580] [NEW] Add the ability to run custom scripts inside ubiquity-dm

Kent Baxley 1017580 at bugs.launchpad.net
Mon Jun 25 16:12:29 UTC 2012


Public bug reported:

In our work on certain OEM projects we found that it has been beneficial
to run simple, custom scripts inside of ubiquity-dm.

For example, we have a python script that we have currently been running
during OOBE / OEM-config as a ubiquity plugin that plays an animation
during firstboot before the language page loads.  This has worked OK,
but, there is a long gap between the ubuntu splash screen and when the
animation fires up.

In order to cut down on this gap, we found that if we run the script
inside of ubiquity-dm it really tightens up the amount of time that it
takes for the video to start playing.   In the meantime, the rest of
OOBE loads up in the background and the user is immediately presented
with the language page as soon as the animation finishes up.    In many
cases, there is little to no gap anymore between splash screen and
animation kickoff.

This led us to propose a patch to ubiquity that will allow a user to
place a simple, custom script of their choosing into either a
/usr/lib/ubiquity/dm-scripts/install or /usr/lib/ubiquity/dm-scripts/oem
directory.  Depending on whether the user wants to run the scripts in
either ubiuquity-proper or oem-config, some logic was added to the
ubiquity-dm script to walk the above directory paths and launch any
scripts located in the respective directory.

I will be attaching my launchpad branch that contains the requested
changes for uqbiquity.  Any improvements, suggestions are welcome.  I
would ultimately also like to get this into precise -proposed.

Thanks.

** Affects: ubiquity (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/1017580

Title:
  Add the ability to run custom scripts inside ubiquity-dm

Status in “ubiquity” package in Ubuntu:
  New

Bug description:
  In our work on certain OEM projects we found that it has been
  beneficial to run simple, custom scripts inside of ubiquity-dm.

  For example, we have a python script that we have currently been
  running during OOBE / OEM-config as a ubiquity plugin that plays an
  animation during firstboot before the language page loads.  This has
  worked OK, but, there is a long gap between the ubuntu splash screen
  and when the animation fires up.

  In order to cut down on this gap, we found that if we run the script
  inside of ubiquity-dm it really tightens up the amount of time that it
  takes for the video to start playing.   In the meantime, the rest of
  OOBE loads up in the background and the user is immediately presented
  with the language page as soon as the animation finishes up.    In
  many cases, there is little to no gap anymore between splash screen
  and animation kickoff.

  This led us to propose a patch to ubiquity that will allow a user to
  place a simple, custom script of their choosing into either a
  /usr/lib/ubiquity/dm-scripts/install or /usr/lib/ubiquity/dm-
  scripts/oem directory.  Depending on whether the user wants to run the
  scripts in either ubiuquity-proper or oem-config, some logic was added
  to the ubiquity-dm script to walk the above directory paths and launch
  any scripts located in the respective directory.

  I will be attaching my launchpad branch that contains the requested
  changes for uqbiquity.  Any improvements, suggestions are welcome.  I
  would ultimately also like to get this into precise -proposed.

  Thanks.

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




More information about the foundations-bugs mailing list