~ubuntu-branches/ubuntu/vivid/hw-detect/vivid

« back to all changes in this revision

Viewing changes to hw-detect.post-base-installer.d/50install-firmware

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs, Colin Watson, Dmitrijs Ledkovs
  • Date: 2013-10-04 10:40:26 UTC
  • mfrom: (0.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20131004104026-oetm4v0l4bz27ywh
Tags: 1.95ubuntu1
[ Colin Watson ]
* Resynchronise with Debian.  Remaining changes:
  - Remove FireWire Ethernet support.
  - Register lp module on i386 and amd64.
  - Exit zero if you continue all the way through ethdetect's errors about
    having no network interfaces.
  - Register rtc module on amd64.
  - Drop priorities of a couple of ethdetect questions to medium.
  - disk-detect.sh: Do not check the kernel command line for any option
    to enable dmraid support. If functional dmraid arrays are found, the
    user will be asked if they wish to activate them.
  - Make dmraid logging a bit neater.
  - 'dmraid -c -s' changed its output format; cope with both old and new.
  - Remove dm-emc from the multipath modules, since it's gone since
    2.6.27.
  - Improve checks for dm-* drivers being present to avoid relying on them
    being built as modules.
  - Offer iSCSI targets for preseeding if partman-iscsi is available and
    no disk devices are found.
  - Stop installing acpi, acpid, and acpi-support-base if acpi is
    available.
  - Add an 'archdetect-deb' package, containing /usr/bin/archdetect.  Add
    an archdetect(1) manual page.
  - Refer to /usr/share/common-licenses/GPL-2 in debian/copyright.
  - Load xenbus_probe_frontend if we're running under the Xen hypervisor.
  - Redirect update-dev output to /dev/null, as it is in principle
    possible for it to write to stdout and that would interfere with
    debconf.
* Drop changes for PS3 and Cell, since we haven't been able to support
  these platforms for some time.

[ Dmitrijs Ledkovs ]
* Move firmware/injected drivers' .deb packages installation from
  post-base-installer.d stage to pre-pkgsel.d stage. (LP: #1209287, LP:
  #1216043)
* Bump question to load driver injection disk from medium to high, and
  raise driver-injection-disk package priority to standard. Thus the
  udeb will be loaded by default, but before installing any debs from
  the OEMDRV a confirmation question will be asked (default true, can be
  pre-seeded)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
        done
13
13
fi
14
14
 
15
 
deb_package () {
16
 
        ar p "$1" control.tar.gz | tar zxO ./control | grep 'Package:' |  sed -e 's/Package: *//'
17
 
}
18
 
 
19
 
# install cached firmware debs
20
 
if [ -d /var/cache/firmware ]; then
21
 
        for deb in /var/cache/firmware/*.deb; do
22
 
                if [ -f "$deb" ]; then
23
 
                        cp -a "$deb" /target/tmp
24
 
                        # TODO debconf passthrough
25
 
                        if ! in-target dpkg -i "/tmp/$(basename "$deb")"; then
26
 
                                # dpkg failed, force removal of package
27
 
                                in-target dpkg --force-depends --remove "$(deb_package "$deb")" || true
28
 
                        fi
29
 
                        rm -f "/target/tmp/$deb"
30
 
                        need_nonfree=1
31
 
                fi
32
 
        done
33
 
fi
34
 
 
35
 
if [ "$need_nonfree" ]; then
 
15
# enable non-free repository if any firmware / injected drivers are
 
16
# detected.
 
17
if [ -n "/var/cache/firmware/*.deb" ]; then
36
18
        db_set apt-setup/non-free true
37
19
fi