~jm-leddy/ubuntu/precise/ubiquity/lp929092

« back to all changes in this revision

Viewing changes to d-i/source/grub-installer/grub-installer

  • Committer: Bazaar Package Importer
  • Author(s): Evan Dandrea, Evan Dandrea, Colin Watson
  • Date: 2009-11-13 10:41:42 UTC
  • mfrom: (281.1.2 karmic-updates)
  • Revision ID: james.westby@ubuntu.com-20091113104142-ghwoqmn0bko416c2
Tags: 2.1.0
[ Evan Dandrea ]
* Run X with -nolisten tcp (LP: #462394).
* Make sure we never try to install onto the live filesystem.
* Only print the filenames being blacklisted if in debug mode.
* Provide human readable sizes in the partitions-too-small warning
  (LP: #298974).
* Mark the "Installation Complete" window as always on top
  (LP: #462178).
* Fixes from Pychecker for the KDE frontend (kde_ui):
  - Don't import datetime or math.  The timezone code is in a separate
    module now.
  - Remove some unused variables.
  - Don't assign to a variable that's going to be immediately discarded.
* Signal to GTK+ when using a right-to-left language, so that it
  composes the interface from right to left (LP: #222845).
* Signal to the slideshow when the installer is using a right-to-left
  language (LP: #446989).
* Set SUDO_UID and SUDO_GID in ubiquity-dm so ubiquity knows what user
  to drop privileges to (LP: #422254).
* Do not try to configure networking in oem-config (LP: #471498).
* Make migration-assistant import failures non-fatal to the overall
  install.
* pkgsel now provides a debconf question to avoid warning the end user
  when the language packs could not be installed (LP: #471553).
* Make sure a device exists as part of the grub target device
  validation.
* Allow the user to retry grub installation with a different device on
  failure.
* Automatic update of included source packages: apt-setup
  1:0.42ubuntu1, choose-mirror 2.29ubuntu2, clock-setup 0.100ubuntu1,
  debian-installer-utils 1.71ubuntu1, grub-installer 1.47ubuntu1, hw-
  detect 1.73ubuntu1, netcfg 1.51ubuntu1, partman-base 135ubuntu1,
  tzsetup 1:0.26ubuntu1, user-setup 1.28ubuntu1.

[ Colin Watson ]
* Add a debian/rules target to run pychecker. I've fixed several warnings,
  but there are still several left so this is not yet enabled by default.
* Fix debconf frontend:
  - Start oem-config on stopping rc, as well as when starting display
    managers.
  - Add some missing imports (ubiquity.frontend.base.Controller,
    ubiquity.plugin.Plugin, ubiquity.i18n, signal,
    ubiquity.components.install).
  - If there's a containing debconf frontend, talk to it rather than using
    debconf-communicator.
  - Set a controller in the language plugin.
  - Use spaces rather than ${!TAB} in localechooser when using the debconf
    frontend, since debconf doesn't support the latter yet.
  - Don't handle user-setup preseeding for the debconf frontend.
  - Remove unused progress_position handling.
  - Fix exception names in ubi-network and ubi-tasks.
* Require Python 2.5, so we can now use hashlib rather than md5 and avoid
  a slew of warnings.
* Add an intro message noting that we're alpha again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
567
567
    grub-pc)
568
568
        log-output -t grub-installer $chroot $ROOT dpkg -P grub grub-legacy
569
569
        # os-prober is only a Recommends so isn't installed by apt-install,
570
 
        # but in Ubuntu we make sure it's installed since it does a better
 
570
        # but we make sure it's installed since it does a better
571
571
        # job than the otheros script.
572
572
        apt-install os-prober || true
573
573
        ;;
574
574
esac
575
575
 
576
 
if ! apt-install $grub_package ; then
 
576
exit_code=0
 
577
case "$grub_package" in
 
578
    grub)
 
579
        if ! apt-install grub-legacy ; then
 
580
                apt-install $grub_package || exit_code=$? 
 
581
        fi
 
582
        ;;
 
583
   *)
 
584
        apt-install $grub_package || exit_code=$? 
 
585
        ;;
 
586
esac
 
587
 
 
588
if [ $exit_code -ne 0 ] ; then
577
589
        db_progress STOP
578
590
        info "Calling 'apt-install $grub_package' failed"
579
591
        db_subst grub-installer/apt-install-failed GRUB "$grub_package"
838
850
 
839
851
                if [ "$grub_version" = "grub" ] ; then
840
852
                        grub_install_params="$grub_install_params $recheck"
 
853
                else
 
854
                        # install even if it requires blocklists
 
855
                        grub_install_params="$grub_install_params --force"
841
856
                fi
842
857
 
843
858
                info "Running $chroot $ROOT grub-install $grub_install_params \"$bootdev\""