Merge ~rafaeldtinoco/ubuntu/+source/ipxe:ipxe-focal-merge into ubuntu/+source/ipxe:ubuntu/focal-devel

Proposed by Rafael David Tinoco
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: ae6d20a0552ca50d85dc03afc82c30a8b1efff37
Merge reported by: Christian Ehrhardt 
Merged at revision: ae6d20a0552ca50d85dc03afc82c30a8b1efff37
Proposed branch: ~rafaeldtinoco/ubuntu/+source/ipxe:ipxe-focal-merge
Merge into: ubuntu/+source/ipxe:ubuntu/focal-devel
Diff against target: 52 lines (+28/-2)
2 files modified
debian/changelog (+13/-0)
debian/tree/ipxe/etc/grub.d/20_ipxe (+15/-2)
Reviewer Review Type Date Requested Status
Christian Ehrhardt  (community) Approve
Canonical Server packageset reviewers Pending
Canonical Server Core Reviewers Pending
Canonical Server Pending
Review via email: mp+377540@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks for picking those up and combining those

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

The code of Alkis LGTM but it is complex, therefore I asked you to test it a while a go and that all looked good.
Therefore +1 to that part.

The ipxe id is a small, but helpful change for our users.
I double checked https://www.gnu.org/software/grub/manual/grub/grub.html#menuentry for side effects but I think it is useful and has no drawback.

ack to both parts of this.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Changelog LGTM, attribution is ok as well

I found a very minor symbol change to do int he changelog - see inline below

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I also like that this is all encapsulated into /etc/grub.d/20_ipxe which makes it in the worst case of an issue for most setups easy to work around by removing that file

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Overall +1, please try to use your new tagging and sponsoring powers :-)

review: Approve
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

$ git push pkg upload/1.0.0+git-20190109.133f4c4-0ubuntu3
Enumerating objects: 37, done.
Counting objects: 100% (37/37), done.
Delta compression using up to 8 threads
Compressing objects: 100% (17/17), done.
Writing objects: 100% (29/29), 2.65 KiB | 543.00 KiB/s, done.
Total 29 (delta 12), reused 0 (delta 0)
To ssh://git.launchpad.net/~usd-import-team/ubuntu/+source/ipxe
 * [new tag] upload/1.0.0+git-20190109.133f4c4-0ubuntu3 -> upload/1.0.0+git-20190109.133f4c4-0ubuntu3

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

$ dput ubuntu ./ipxe_1.0.0+git-20190109.133f4c4-0ubuntu3_source.changes
Checking signature on .changes
gpg: ./ipxe_1.0.0+git-20190109.133f4c4-0ubuntu3_source.changes: Valid signature from A93E0E0AD83C0D0F
Checking signature on .dsc
gpg: ./ipxe_1.0.0+git-20190109.133f4c4-0ubuntu3.dsc: Valid signature from A93E0E0AD83C0D0F
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading ipxe_1.0.0+git-20190109.133f4c4-0ubuntu3.dsc: done.
  Uploading ipxe_1.0.0+git-20190109.133f4c4-0ubuntu3.debian.tar.xz: done.
  Uploading ipxe_1.0.0+git-20190109.133f4c4-0ubuntu3_source.buildinfo: done.
  Uploading ipxe_1.0.0+git-20190109.133f4c4-0ubuntu3_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

https://launchpad.net/ubuntu/+source/ipxe/1.0.0+git-20190109.133f4c4-0ubuntu3 started building, consider that one merged and lets track migration the next few hours/days

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index c11bbfa..5744f44 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,16 @@
6+ipxe (1.0.0+git-20190109.133f4c4-0ubuntu3) focal; urgency=medium
7+
8+ [Alkis Georgopoulos]
9+ * d/tree/ipxe/etc/grub.d/20_ipxe: Make grub-ipxe work under UEFI
10+ (LP: #1811496)
11+ - Use ipxe.efi under UEFI
12+ - Save default entry when iPXE is selected
13+ [Sharon Dagan]
14+ - d/tree/ipxe/etc/grub.d/20_ipxe: Identify ipxe grub menu entry in
15+ an easier way (LP: #1858374)
16+
17+ -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Mon, 06 Jan 2020 18:59:25 +0000
18+
19 ipxe (1.0.0+git-20190109.133f4c4-0ubuntu2) disco; urgency=medium
20
21 * Add e1000e firmware for qemu. (closes: #884240)
22diff --git a/debian/tree/ipxe/etc/grub.d/20_ipxe b/debian/tree/ipxe/etc/grub.d/20_ipxe
23index 8be37c8..fc77dfd 100755
24--- a/debian/tree/ipxe/etc/grub.d/20_ipxe
25+++ b/debian/tree/ipxe/etc/grub.d/20_ipxe
26@@ -15,11 +15,24 @@ IPXE=/boot/ipxe.lkrn
27
28 if test -e "$IPXE" ; then
29 IPXEPATH=$( make_system_path_relative_to_its_root "$IPXE" )
30+ # Remove the .lkrn extension
31+ IPXEPATH=${IPXEPATH%.lkrn}
32 echo "Found iPXE image: $IPXE" >&2
33 cat << EOF
34-menuentry "Network boot (iPXE)" --users "" --class network {
35+menuentry "Network boot (iPXE)" --users "" --class network --id ipxe {
36 ${prepare_boot_cache}
37- linux16 $IPXEPATH
38+EOF
39+ save_default_entry | grub_add_tab
40+ cat << EOF
41+ if [ "\$grub_platform" = "efi" ]; then
42+ chainloader $IPXEPATH.efi
43+ else
44+ linux16 $IPXEPATH.lkrn
45+ # If the user provided an iPXE script, load it
46+ if [ -f $IPXEPATH.ipxe ]; then
47+ initrd16 $IPXEPATH.ipxe
48+ fi
49+ fi
50 }
51 EOF
52 fi

Subscribers

People subscribed via source and target branches