Merge lp:~rbalint/livecd-rootfs/fix-minimized-ppc64el-image-build into lp:livecd-rootfs

Proposed by Balint Reczey
Status: Merged
Merged at revision: 1559
Proposed branch: lp:~rbalint/livecd-rootfs/fix-minimized-ppc64el-image-build
Merge into: lp:livecd-rootfs
Diff against target: 91 lines (+21/-18)
4 files modified
debian/changelog (+9/-0)
debian/tests/minimized (+1/-9)
live-build/auto/config (+6/-9)
live-build/ubuntu-cpc/hooks/999-cpc-fixes.chroot (+5/-0)
To merge this branch: bzr merge lp:~rbalint/livecd-rootfs/fix-minimized-ppc64el-image-build
Reviewer Review Type Date Requested Status
Steve Langasek Pending
Review via email: mp+332068@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) :
1558. By Steve Langasek

releasing package livecd-rootfs version 2.472

Revision history for this message
Balint Reczey (rbalint) :
1559. By Balint Reczey

Clean up dangling /boot/initrd.img symlink when needed

1560. By Balint Reczey

Revert ignoring failure of minimized autopkgtest on ppc64el

1561. By Balint Reczey

Use kvm kernel only on amd64

1562. By Balint Reczey

Skip installing server task when building minimial images

1563. By Balint Reczey

Update changelog

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 2017-10-10 22:41:05 +0000
3+++ debian/changelog 2017-10-10 23:59:30 +0000
4@@ -1,3 +1,12 @@
5+livecd-rootfs (2.473) UNRELEASED; urgency=medium
6+
7+ * Clean up dangling /boot/initrd.img symlink when needed
8+ * Revert ignoring failure of minimized autopkgtest on ppc64el
9+ * Use kvm kernel only on amd64
10+ * Skip installing server task when building minimial images
11+
12+ -- Balint Reczey <rbalint@ubuntu.com> Wed, 11 Oct 2017 01:58:39 +0200
13+
14 livecd-rootfs (2.472) artful; urgency=medium
15
16 [ Michael Hudson-Doyle ]
17
18=== modified file 'debian/tests/minimized'
19--- debian/tests/minimized 2017-10-01 20:39:14 +0000
20+++ debian/tests/minimized 2017-10-10 23:59:30 +0000
21@@ -1,11 +1,3 @@
22 #!/bin/sh
23
24-ARCH=$(dpkg --print-architecture)
25-
26-failure_code=1
27-if [ "$ARCH" = ppc64el ]; then
28- # not a regression; don't block while debugging
29- failure_code=0
30-fi
31-
32-env SELECTED_TRIPLETS=ubuntu-cpc:minimized:ubuntu-cpc debian/tests/default-bootstraps || exit $failure_code
33+env SELECTED_TRIPLETS=ubuntu-cpc:minimized:ubuntu-cpc debian/tests/default-bootstraps
34
35=== modified file 'live-build/auto/config'
36--- live-build/auto/config 2017-10-04 17:13:13 +0000
37+++ live-build/auto/config 2017-10-10 23:59:30 +0000
38@@ -540,7 +540,7 @@
39 # linux-kvm is available since you control the
40 # archive and can provide this metapackage as
41 # necessary.
42- if [ -z "$EXTRA_PPAS" ] && [ "$SUITE" != xenial ]; then
43+ if [ "$ARCH" != "amd64" ] || ([ -z "$EXTRA_PPAS" ] && [ "$SUITE" != xenial ]); then
44 KERNEL_FLAVOURS=virtual
45 else
46 KERNEL_FLAVOURS=kvm
47@@ -549,6 +549,11 @@
48 add_task install minimal standard cloud-image
49 add_package install ubuntu-minimal
50 KERNEL_FLAVOURS=virtual
51+ case $ARCH in
52+ armhf|arm64|ppc64el|powerpc)
53+ add_task install server
54+ ;;
55+ esac
56 fi
57
58 BINARY_REMOVE_LINUX=false
59@@ -557,17 +562,9 @@
60 armhf)
61 KERNEL_FLAVOURS=generic-lpae
62 add_package install flash-kernel
63- add_task install server
64 ;;
65 arm64)
66 add_package install flash-kernel
67- add_task install server
68- ;;
69- ppc64el)
70- add_task install server
71- ;;
72- powerpc)
73- add_task install server
74 ;;
75 esac
76 OPTS="${OPTS:+$OPTS }--system=normal"
77
78=== modified file 'live-build/ubuntu-cpc/hooks/999-cpc-fixes.chroot'
79--- live-build/ubuntu-cpc/hooks/999-cpc-fixes.chroot 2017-09-29 19:20:14 +0000
80+++ live-build/ubuntu-cpc/hooks/999-cpc-fixes.chroot 2017-10-10 23:59:30 +0000
81@@ -130,6 +130,11 @@
82 } > "${rootd}/etc/overlayroot.local.conf"
83 fi
84
85+# previous steps may have left a dangling symlink here with
86+# SUBPROJECT=minimized and that breaks lb_chroot_hacks step
87+if [ -L "${rootd}/boot/initrd.img" ] && [ ! -e "${rootd}/boot/initrd.img" ]; then
88+ rm "${rootd}/boot/initrd.img"
89+fi
90
91 #### END COMMON ARCH FUNCTIONS
92

Subscribers

People subscribed via source and target branches