Merge ~paelzer/ubuntu/+source/open-iscsi:lp-1922976-finalrd-logout-FOCAL into ubuntu/+source/open-iscsi:ubuntu/focal-devel

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 8ee97236e22815354da286e11adbc8706d0d02cf
Merged at revision: 8ee97236e22815354da286e11adbc8706d0d02cf
Proposed branch: ~paelzer/ubuntu/+source/open-iscsi:lp-1922976-finalrd-logout-FOCAL
Merge into: ubuntu/+source/open-iscsi:ubuntu/focal-devel
Diff against target: 36 lines (+14/-0)
2 files modified
debian/changelog (+7/-0)
debian/open-iscsi.finalrd (+7/-0)
Reviewer Review Type Date Requested Status
Utkarsh Gupta (community) Approve
Canonical Server packageset reviewers Pending
git-ubuntu developers Pending
Review via email: mp+401087@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hello,

Whilst the changes look good, I'd like to wait for Michael to confirm back that this fix indeed fixes the issue for them. I hope there's no rush in this MP and can wait until they can confirm the same.

Hence marking "Needs Information" for the time being.

Besides, a trivial question in the diff below:

review: Needs Information
Revision history for this message
Paride Legovini (paride) :
Revision history for this message
Utkarsh Gupta (utkarsh) :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Fixed the comment paride made, thanks for the other discussions - but following the outcome no changes due to those.

Yes I'm waiting for Michael to test before upload, but that should (IMHO) not block the review.

If all here looks good, then it should be up to me to wait for everything else to be complete as well :-) That way I can control the potential extra delay instead of waiting for a re-review then.

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hi Christian,

> If all here looks good, then it should be up to me to wait for
> everything else to be complete as well :-) That way I can
> control the potential extra delay instead of waiting for a
> re-review then.

Of course. I did mention that the changes look good in the very first sentence of the initial review and wrote about the other concerns/questions/curiosities, heh :)

That said, here's the more official review:

* Changelog:
  - [✔] changelog entry correct version and targeted codename
  - [✔] changelog entries correct
  - [✔] update-maintainer has been run

* Actual changes:
  - [✔] no upstream changes to consider
  - [✔] no further upstream version to consider
  - [✔] debian changes look safe

* New Delta:
  - [✔] no new patches added

* Build/Test:
  - [✔] build is ok
  - [✔] verified PPA package installs/uninstalls
  - [✔] sanity checks test fine

Thanks to Michael Brown for testing this fix! \o/

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

Hirsute complete - for this SRU Tag pushed and .changes uploaded

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 4dc56b9..779a72d 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+open-iscsi (2.0.874-7.1ubuntu6.2) focal; urgency=medium
7+
8+ * d/open-iscsi.finalrd: fix UID resolution issues in logout (LP: #1922976)
9+ Thanks to Michael Brown
10+
11+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 18 Mar 2021 09:44:07 +0100
12+
13 open-iscsi (2.0.874-7.1ubuntu6.1) focal; urgency=medium
14
15 [ Ben Swartzlander ]
16diff --git a/debian/open-iscsi.finalrd b/debian/open-iscsi.finalrd
17index d8c8a21..d0f4352 100755
18--- a/debian/open-iscsi.finalrd
19+++ b/debian/open-iscsi.finalrd
20@@ -14,9 +14,16 @@ then
21 copy_exec /usr/bin/expr
22 copy_file config /etc/iscsi/iscsid.conf
23 copy_file config /etc/iscsi/initiatorname.iscsi
24+ # needed to resolve UIDs (LP: #1922976)
25+ copy_exec /usr/lib/*/libnss_files.so.*
26 exit 0
27 fi
28
29+# if not present in the environment, then fake a trivial passwd file (LP: #1922976)
30+if [ ! -e /etc/passwd ] ; then
31+ echo "root:x:0:0:root:/:/bin/sh" > /etc/passwd
32+fi
33+
34 # re-establish connection and logout during shutdown
35 # if initramfs did bring up open-iscsi on boot
36 [ -f /open-iscsi.interface ] || exit 0

Subscribers

People subscribed via source and target branches