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

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 1df48cd3dd644584b1e73655386061cca9f1121f
Merged at revision: 1df48cd3dd644584b1e73655386061cca9f1121f
Proposed branch: ~paelzer/ubuntu/+source/open-iscsi:lp-1922976-finalrd-logout-HIRSUTE
Merge into: ubuntu/+source/open-iscsi:ubuntu/hirsute-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
Dimitri John Ledkov (community) cheering on from the sideline Approve
Utkarsh Gupta (community) Approve
Canonical Server packageset reviewers Pending
git-ubuntu developers Pending
Review via email: mp+401086@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 :

Same comment as https://code.launchpad.net/~paelzer/ubuntu/+source/open-iscsi/+git/open-iscsi/+merge/401087/comments/1056194

Still an explicit note, I am just marking "Needs Information" to wait until Michael can confirm that this works.

review: Needs Information
Revision history for this message
Paride Legovini (paride) :
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/

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

To ssh://git.launchpad.net/~usd-import-team/ubuntu/+source/open-iscsi
 * [new tag] upload/2.1.3-1ubuntu6 -> upload/2.1.3-1ubuntu6

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading open-iscsi_2.1.3-1ubuntu6.dsc: done.
  Uploading open-iscsi_2.1.3-1ubuntu6.debian.tar.xz: done.
  Uploading open-iscsi_2.1.3-1ubuntu6_source.buildinfo: done.
  Uploading open-iscsi_2.1.3-1ubuntu6_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Nicely done!

review: Approve (cheering on from the sideline)

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 28b2934..f49a451 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+open-iscsi (2.1.3-1ubuntu6) hirsute; 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.1.3-1ubuntu5) hirsute; urgency=medium
14
15 * make d/t/testuite python3 compatible (LP: #1919461)
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