Merge lp:~superm1/hw-detect/dell-driver-injection-disk into lp:~ubuntu-core-dev/hw-detect/ubuntu

Proposed by Mario Limonciello
Status: Merged
Merged at revision: not available
Proposed branch: lp:~superm1/hw-detect/dell-driver-injection-disk
Merge into: lp:~ubuntu-core-dev/hw-detect/ubuntu
Diff against target: None lines
To merge this branch: bzr merge lp:~superm1/hw-detect/dell-driver-injection-disk
Reviewer Review Type Date Requested Status
VCS imports Pending
Review via email: mp+4392@code.launchpad.net
To post a comment you must log in.
113. By Mario Limonciello

revert r110 since we are not changing the syntax for mountmedia to use the firmware keyword

114. By Mario Limonciello

pull in the safe shell code from localechooser to find out where we are storing our driver disks at

115. By Mario Limonciello

merge with main ~ubuntu-core-dev/hw-detect/ubuntu branch

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2008-11-04 23:42:42 +0000
+++ Makefile 2009-03-12 04:59:31 +0000
@@ -32,7 +32,7 @@
32 rm -f *.o32 rm -f *.o
33 rm -f archdetect33 rm -f archdetect
3434
35install: install-hw-detect install-ethdetect install-disk-detect install-archdetect install-archdetect-deb35install: install-hw-detect install-ethdetect install-disk-detect install-driver-injection-disk-detect install-archdetect install-archdetect-deb
3636
37install-hw-detect: hw-detect.sh37install-hw-detect: hw-detect.sh
38 $(INSTALL) -d $(bindir)38 $(INSTALL) -d $(bindir)
@@ -72,6 +72,10 @@
72 $(INSTALL) -d $(bindir)72 $(INSTALL) -d $(bindir)
73 $(INSTALL) disk-detect.sh $(bindir)/disk-detect73 $(INSTALL) disk-detect.sh $(bindir)/disk-detect
7474
75install-driver-injection-disk-detect: driver-injection-disk.sh
76 $(INSTALL) -d $(bindir)
77 $(INSTALL) driver-injection-disk.sh $(bindir)/driver-injection-disk
78
75install-archdetect: archdetect79install-archdetect: archdetect
76 $(INSTALL) -d $(bindir)80 $(INSTALL) -d $(bindir)
77 $(INSTALL) archdetect $(bindir)81 $(INSTALL) archdetect $(bindir)
7882
=== modified file 'check-missing-firmware.sh'
--- check-missing-firmware.sh 2008-09-14 20:14:32 +0000
+++ check-missing-firmware.sh 2009-03-12 04:58:25 +0000
@@ -111,7 +111,7 @@
111 # Try to load udebs (or debs) that contain the missing firmware.111 # Try to load udebs (or debs) that contain the missing firmware.
112 # This does not use anna because debs can have arbitrary112 # This does not use anna because debs can have arbitrary
113 # dependencies, which anna might try to install.113 # dependencies, which anna might try to install.
114 if mountmedia driver; then114 if mountmedia firmware; then
115 echo "$files" | sed -e 's/ /\n/g' >/tmp/grepfor115 echo "$files" | sed -e 's/ /\n/g' >/tmp/grepfor
116 for filename in /media/*.deb /media/*.udeb /media/*.ude /media/firmware/*.deb /media/firmware/*.udeb /media/firmware/*.ude; do116 for filename in /media/*.deb /media/*.udeb /media/*.ude /media/firmware/*.deb /media/firmware/*.udeb /media/firmware/*.ude; do
117 if [ -f "$filename" ]; then117 if [ -f "$filename" ]; then
118118
=== modified file 'debian/changelog'
--- debian/changelog 2009-03-04 16:33:01 +0000
+++ debian/changelog 2009-03-12 05:00:21 +0000
@@ -1,3 +1,11 @@
1hw-detect (1.71ubuntu6) UNRELEASED; urgency=low
2
3 * Add support for Dell Driver Injection disk v1, an integrated flash media based
4 solution for adding in drivers after OS launches. This feature will be on
5 upcoming Dell servers. (LP: #341526)
6
7 -- Mario Limonciello <mario_limonciello@dell.com> Wed, 11 Mar 2009 13:26:55 -0500
8
1hw-detect (1.71ubuntu5) jaunty; urgency=low9hw-detect (1.71ubuntu5) jaunty; urgency=low
210
3 * Use 'update-dev --settle' rather than 'update-dev' after loading modules11 * Use 'update-dev --settle' rather than 'update-dev' after loading modules
412
=== modified file 'debian/control'
--- debian/control 2009-03-02 14:13:00 +0000
+++ debian/control 2009-03-12 04:59:31 +0000
@@ -33,6 +33,15 @@
33XB-Installer-Menu-Item: 350033XB-Installer-Menu-Item: 3500
34Description: Detect disk drives34Description: Detect disk drives
3535
36Package: driver-injection-disk-detect
37XC-Package-Type: udeb
38Architecture: all
39Depends: hw-detect, mountmedia
40Priority: optional
41Enhances: hw-detect
42XB-Installer-Menu-Item: 1500
43Description: Detect OEM driver injection disks
44
36Package: archdetect45Package: archdetect
37XC-Package-Type: udeb46XC-Package-Type: udeb
38Architecture: any47Architecture: any
3948
=== added file 'debian/driver-injection-disk-detect.postinst'
--- debian/driver-injection-disk-detect.postinst 1970-01-01 00:00:00 +0000
+++ debian/driver-injection-disk-detect.postinst 2009-03-12 04:59:31 +0000
@@ -0,0 +1,4 @@
1#!/bin/sh
2set -e
3
4driver-injection-disk
05
=== added file 'debian/driver-injection-disk-detect.templates'
--- debian/driver-injection-disk-detect.templates 1970-01-01 00:00:00 +0000
+++ debian/driver-injection-disk-detect.templates 2009-03-12 04:59:31 +0000
@@ -0,0 +1,13 @@
1Template: debian-installer/driver-injection-disk-detect/title
2Type: text
3# Main menu item
4# :sl1:
5_Description: Detect OEM driver injection disks
6
7Template: driver-injection-disk/load
8Type: boolean
9# :sl2:
10_Description: Load OEM supported drivers from driver injection disk?
11 Your OEM has prepared internal media that contains the drivers you may
12 need for supporting this hardware with this OS release.
13
014
=== added file 'driver-injection-disk.sh'
--- driver-injection-disk.sh 1970-01-01 00:00:00 +0000
+++ driver-injection-disk.sh 2009-03-12 04:59:31 +0000
@@ -0,0 +1,48 @@
1#!/bin/sh
2set -e
3. /usr/share/debconf/confmodule
4
5log () {
6 logger -t driver-injection-disk "$@"
7}
8
9check_deb_arch () {
10 arch=$(ar p "$1" control.tar.gz | tar zxO ./control | grep '^Architecture:' | sed -e 's/Architecture: *//')
11 [ "$arch" = all ] || [ "$arch" = "$(udpkg --print-architecture)" ]
12}
13
14install_driver_pkg () {
15 if echo "$1" | grep -q '\.deb$'; then
16 # cache deb for installation into /target later
17 mkdir -p /var/cache/firmware/
18 cp -a "$1" /var/cache/firmware/ || true
19 udpkg --unpack "/var/cache/firmware/$(basename "$1")"
20 else
21 udpkg --unpack "$1"
22 fi
23}
24
25#try to mount possible driver disk
26for device in $(list-devices usb-partition); do
27 label=$(/sbin/vol_id --label $device 2>/dev/null || true)
28 if [ "$label" = "OEMDRV" ]; then
29 db_input high driver-injection-disk/load || true
30 if ! db_go; then
31 exit 10 # back up
32 fi
33 db_get driver-injection-disk/load
34 if [ "$RET" = true ]; then
35 if mountmedia driver-injection-disk; then
36 dir=/media/ubuntu/$(grep DISTRIB_RELEASE /etc/lsb-release | cut -d"=" -f2)
37 for filename in $dir/*.deb $dir/*.udeb $dir/*.ude; do
38 if [ -f "$filename" ] && check_deb_arch "$filename"; then
39 log "installing driver package $filename"
40 install_driver_pkg "$filename" || true
41 fi
42 done
43 fi
44 umount /media || true
45 fi
46 fi
47done
48

Subscribers

People subscribed via source and target branches

to all changes: