Merge lp:~fourdollars/ubuntu/trusty/partman-efi/1512589 into lp:ubuntu/trusty/partman-efi

Proposed by Shih-Yuan Lee
Status: Approved
Approved by: Mathieu Trudel-Lapierre
Approved revision: 29
Proposed branch: lp:~fourdollars/ubuntu/trusty/partman-efi/1512589
Merge into: lp:ubuntu/trusty/partman-efi
Diff against target: 88 lines (+46/-5)
3 files modified
debian/changelog (+12/-0)
debian/control (+1/-1)
fstab.d/efi (+33/-4)
To merge this branch: bzr merge lp:~fourdollars/ubuntu/trusty/partman-efi/1512589
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
Review via email: mp+276494@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks fine. The same code is already in xenial now; I will give it some more testing and do the uploads to SRUs.

review: Approve

Unmerged revisions

29. By Shih-Yuan Lee

Follow partman-auto/disk to reuse the ESP. (LP: #1512589)

28. By dann frazier

Enable arm64 builds (LP: #1435663).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-12-04 14:36:21 +0000
3+++ debian/changelog 2015-11-03 07:08:49 +0000
4@@ -1,3 +1,15 @@
5+partman-efi (25ubuntu6.14.04.2) trusty-proposed; urgency=medium
6+
7+ * Follow partman-auto/disk to reuse the ESP. (LP: #1512589)
8+
9+ -- Shih-Yuan Lee (FourDollars) <sylee@canonical.com> Tue, 03 Nov 2015 14:47:58 +0800
10+
11+partman-efi (25ubuntu6.14.04.1) trusty-proposed; urgency=medium
12+
13+ * Enable arm64 builds (LP: #1435663).
14+
15+ -- dann frazier <dannf@ubuntu.com> Mon, 23 Mar 2015 23:11:52 -0600
16+
17 partman-efi (25ubuntu6) trusty; urgency=low
18
19 * Use mkfs.fat rather than mkdosfs if it exists (LP: #1257702).
20
21=== modified file 'debian/control'
22--- debian/control 2013-01-18 18:54:03 +0000
23+++ debian/control 2015-11-03 07:08:49 +0000
24@@ -12,6 +12,6 @@
25
26 Package: partman-efi
27 XC-Package-Type: udeb
28-Architecture: i386 ia64 amd64
29+Architecture: i386 ia64 amd64 arm64
30 Depends: partman-base (>= 129), dosfstools-udeb, ${misc:Depends}
31 Description: Add to partman support for EFI boot partitions
32
33=== modified file 'fstab.d/efi'
34--- fstab.d/efi 2010-09-03 13:42:45 +0000
35+++ fstab.d/efi 2015-11-03 07:08:49 +0000
36@@ -12,19 +12,48 @@
37 ;;
38 esac
39
40-seen_efi=
41+paths=
42 for dev in $DEVICES/*; do
43 [ -d $dev ] || continue
44 cd $dev
45 open_dialog PARTITIONS
46 while { read_line num id size type fs path name; [ "$id" ]; }; do
47- [ -z "$seen_efi" ] || continue
48 [ $fs != free ] || continue
49 [ -f "$id/method" ] || continue
50 method=$(cat $id/method)
51 [ "$method" = efi ] || continue
52- echo "$path" /boot/efi vfat defaults 0 1
53- seen_efi=1
54+ if [ -z "$paths" ]; then
55+ paths="$path"
56+ else
57+ paths="$paths $path"
58+ fi
59 done
60 close_dialog
61 done
62+
63+if [ -z "$paths" ]; then
64+ exit 0
65+fi
66+
67+# Use any autopartition disk that has been set
68+if db_get partman-auto/disk && [ "$RET" ]; then
69+ disks="$RET"
70+ seen_efi=
71+ for disk in $disks; do
72+ for path in $paths; do
73+ case "$path" in
74+ $disk*)
75+ echo "$path" /boot/efi vfat defaults 0 1
76+ seen_efi=1
77+ break
78+ ;;
79+ esac
80+ done
81+ [ -z "$seen_efi" ] || break
82+ done
83+else
84+ for path in $paths; do
85+ echo "$path" /boot/efi vfat defaults 0 1
86+ break
87+ done
88+fi

Subscribers

People subscribed via source and target branches

to all changes: