Merge lp:~vorlon/debian-installer/ppc64el-netboot into lp:~ubuntu-core-dev/debian-installer/ubuntu

Proposed by Steve Langasek
Status: Merged
Merged at revision: 1965
Proposed branch: lp:~vorlon/debian-installer/ppc64el-netboot
Merge into: lp:~ubuntu-core-dev/debian-installer/ubuntu
Diff against target: 66 lines (+31/-3)
3 files modified
build/config/ppc64el.cfg (+21/-0)
build/config/ppc64el/netboot.cfg (+4/-3)
debian/changelog (+6/-0)
To merge this branch: bzr merge lp:~vorlon/debian-installer/ppc64el-netboot
Reviewer Review Type Date Requested Status
Colin Watson Approve
Ubuntu Core Development Team Pending
Review via email: mp+214894@code.launchpad.net

Description of the change

Build a grub image + netdir on ppc64el for netboot, so that users don't have
to piece this together for themselves.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

LGTM now.

review: Approve
1965. By Colin Watson

merge lp:~vorlon/debian-installer/ppc64el-netboot

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'build/config/ppc64el.cfg'
2--- build/config/ppc64el.cfg 2014-04-05 07:54:53 +0000
3+++ build/config/ppc64el.cfg 2014-04-09 15:55:20 +0000
4@@ -10,6 +10,8 @@
5 KERNELIMAGEVERSION = $(KERNELVERSION)
6
7 GRUB_CFG_CDROM = boot/ppc64el/grub-cdrom.cfg
8+GRUB_CFG_NETBOOT=boot/ppc64el/grub-cdrom.cfg
9+
10 GRUB_MODULES = linux normal
11 GRUB_MODULES_CDROM = iso9660
12
13@@ -53,3 +55,22 @@
14 $(GRUB_MODULES) $(GRUB_MODULES_CDROM)
15 cp -p /usr/lib/grub/powerpc-ieee1275/bootinfo.txt \
16 $(TEMP_CD_INFO_DIR)/ppc/
17+
18+# Netboot files
19+.PHONY: arch_netboot_dir
20+arch_netboot_dir:
21+ -rm -f $(TEMP_NETBOOT_DIR)
22+ mkdir -p $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)
23+ cp $(TEMP_INITRD) $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)
24+ cp $(TEMP_KERNEL) $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)
25+
26+ bootvars-subst \
27+ KERNEL $(NETBOOT_PATH)/vmlinux \
28+ INITRD $(NETBOOT_PATH)/initrd.gz \
29+ < $(GRUB_CFG_NETBOOT) > $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)/grub.cfg
30+ if [ -n "$(SPLASH_PNG)" ]; then \
31+ cp $(SPLASH_PNG) $(TEMP_NETBOOT_DIR)/$(NETBOOT_PATH)/splash.png; \
32+ fi
33+
34+ grub-mknetdir --net-directory=$(TEMP_NETBOOT_DIR) \
35+ --subdir=$(NETBOOT_PATH)
36
37=== modified file 'build/config/ppc64el/netboot.cfg'
38--- build/config/ppc64el/netboot.cfg 2014-01-29 19:11:09 +0000
39+++ build/config/ppc64el/netboot.cfg 2014-04-09 15:55:20 +0000
40@@ -1,8 +1,9 @@
41 MEDIA_TYPE = netboot image
42
43-TARGET = $(INITRD) $(KERNEL) $(MINIISO)
44+NETBOOT_DIR_TARGETS = $(TEMP_INITRD) $(TEMP_KERNEL)
45+TARGET = $(NETBOOT_DIR) $(NETBOOT_TAR) $(MINIISO)
46 EXTRANAME = $(MEDIUM)/
47
48-MANIFEST-INITRD = "initrd for Little-Endian 64-bit POWER CPUs (POWER8 and later)"
49-MANIFEST-KERNEL = "kernel for Little-Endian 64-bit POWER CPUs (POWER8 and later)"
50+MANIFEST-NETBOOT_DIR = "PXE boot directory for tftp server"
51+MANIFEST-NETBOOT_TAR = "tarball of PXE boot directory"
52 MANIFEST-MINIISO = "tiny CD image that boots the netboot installer"
53
54=== modified file 'debian/changelog'
55--- debian/changelog 2014-04-05 07:54:53 +0000
56+++ debian/changelog 2014-04-09 15:55:20 +0000
57@@ -1,3 +1,9 @@
58+debian-installer (20101020ubuntu314) UNRELEASED; urgency=medium
59+
60+ * Generate a grub netboot image and grub netboot directory for ppc64el.
61+
62+ -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 09 Apr 2014 00:32:19 -0700
63+
64 debian-installer (20101020ubuntu313) trusty; urgency=medium
65
66 * Move master kernels to 3.13.0-23.

Subscribers

People subscribed via source and target branches