Merge ~chad.smith/ubuntu/+source/pollinate:ubuntu/bionic-devel into ubuntu/+source/pollinate:ubuntu/bionic-devel

Proposed by Chad Smith
Status: Merged
Merge reported by: Scott Moser
Merged at revision: 300a680cf5c374223a25736592b1538cbb640b8b
Proposed branch: ~chad.smith/ubuntu/+source/pollinate:ubuntu/bionic-devel
Merge into: ubuntu/+source/pollinate:ubuntu/bionic-devel
Diff against target: 85 lines (+29/-6)
3 files modified
ChangeLog (+17/-2)
debian/changelog (+9/-0)
pollinate (+3/-4)
Reviewer Review Type Date Requested Status
Scott Moser (community) Approve
Review via email: mp+347079@code.launchpad.net

Commit message

Sync 4.33 from upstream ubuntu/devel into ubuntu/bionic-devel. No packaging changes made.

To post a comment you must log in.
300a680... by Chad Smith

Import version 4.33-0ubuntu1~18.04.1 to ubuntu/bionic-proposed

New changelog entries:
  * New upstream release (LP: #1761240):
    - Fix bug on xen when not booted with systemd.
    - Use systemd-detect-virt if available.
    - Include img/build_name/server in user-agent.

Revision history for this message
Scott Moser (smoser) wrote :

I uploaded this as it is excewpt for changed the distribution in debian/changelog from bionic-updates to just bionic.

Thanks.

review: Approve
Revision history for this message
Scott Moser (smoser) wrote :

marking merged as uploaded to queue.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/ChangeLog b/ChangeLog
2index 79a87e2..40a1039 100644
3--- a/ChangeLog
4+++ b/ChangeLog
5@@ -1,10 +1,25 @@
6-pollinate (4.31) released; urgency=medium
7+pollinate (4.33) released; urgency=medium
8+
9+ * pollinate: fix bug on xen when not booted with systemd. user-agent
10+ would contain virt/virt/xen rather than virt/xen. (LP: #1774043)
11+ * pollinate: use systemd-detect-virt if available rather than detecting
12+ its availability based on /run/systemd.
13+
14+ -- Scott Moser <smoser@ubuntu.com> Fri, 25 May 2018 12:30:15 -0400
15+
16+pollinate (4.32-0ubuntu1) cosmic; urgency=medium
17+
18+ * pollinate: include img/build_name/server in user-agent.
19+
20+ -- Scott Moser <smoser@ubuntu.com> Fri, 25 May 2018 12:30:06 -0400
21+
22+pollinate (4.31-0ubuntu1) bionic; urgency=medium
23
24 [ Scott Moser ]
25 * pollinate: add '--print-user-agent' flag.
26 * pollinate: Speedups when collecting information for user-agent.
27
28- -- Dustin Kirkland <kirkland@ubuntu.com> Wed, 31 Jan 2018 07:24:35 -0600
29+ -- Dustin Kirkland <kirkland@ubuntu.com> Wed, 14 Feb 2018 11:01:18 -0600
30
31 pollinate (4.30-0ubuntu1) bionic; urgency=medium
32
33diff --git a/debian/changelog b/debian/changelog
34index fd8b2dd..a369baf 100644
35--- a/debian/changelog
36+++ b/debian/changelog
37@@ -1,3 +1,12 @@
38+pollinate (4.33-0ubuntu1~18.04.1) bionic-updates; urgency=medium
39+
40+ * New upstream release (LP: #1761240):
41+ - Fix bug on xen when not booted with systemd.
42+ - Use systemd-detect-virt if available.
43+ - Include img/build_name/server in user-agent.
44+
45+ -- Chad Smith <chad.smith@canonical.com> Wed, 30 May 2018 10:36:52 -0600
46+
47 pollinate (4.31-0ubuntu1) bionic; urgency=medium
48
49 [ Scott Moser ]
50diff --git a/pollinate b/pollinate
51index 4f71070..4a4cbbd 100755
52--- a/pollinate
53+++ b/pollinate
54@@ -92,13 +92,12 @@ hash_and_write() {
55 read_build_info() {
56 # ubuntu images place build information in /etc/cloud/build.info
57 # format of file is '<key>: <value>' put these under img/<key>/<value>
58- # do not report 'build_name: server', there are not other known values.
59 local bifile="${1:-/etc/cloud/build.info}" ret=""
60 _RET=""
61 [ -s "$bifile" ] || return 0
62 ret=$(awk '{
63 gsub(/#.*/, ""); gsub(/\s+$/, "");
64- if ($0 == "" || $0 !~ /:/ || $0 == "build_name: server") next;
65+ if ($0 == "" || $0 !~ /:/) next;
66 gsub(/:\s*/, "/");
67 printf("img/%s ", $0) }' "$bifile") || return
68 _RET="${ret% }"
69@@ -124,14 +123,14 @@ read_virt() {
70 # system is running on.
71 local ret=""
72 _RET=""
73- if [ -d /run/systemd ]; then
74+ if command -v systemd-detect-virt >/dev/null; then
75 ret=$(systemd-detect-virt)
76 # systemd-detect-virt returns 1 for 'none'
77 [ $? -eq 0 -o "$ret" = "none" ] || ret=""
78 else
79 # trusty would take this path.
80 if [ -d /dev/xen ]; then
81- ret="virt/xen"
82+ ret="xen"
83 elif [ -d /dev/lxd ]; then
84 # call this 'lxc' for consistency with systemd-detect-virt.
85 ret="lxc"

Subscribers

People subscribed via source and target branches