Merge ~mwhudson/finalrd:better-lib-detection into finalrd:master

Proposed by Michael Hudson-Doyle
Status: Merged
Merged at revision: f203066af54204e452c4c8a531ff02d6c2893dcb
Proposed branch: ~mwhudson/finalrd:better-lib-detection
Merge into: finalrd:master
Diff against target: 32 lines (+7/-2)
2 files modified
debian/changelog (+6/-0)
finalrd.sh (+1/-2)
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Review via email: mp+406339@code.launchpad.net

Commit message

 finalrd (8) UNRELEASED; urgency=medium
 .
   * Improve library detection in finalrd.sh.

Description of the change

Turns out accidentally testing my glibc snapshot found something.

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 5d560d5..85920d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
1finalrd (8) UNRELEASED; urgency=medium
2
3 * Improve library detection in finalrd.sh.
4
5 -- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Thu, 29 Jul 2021 12:45:27 +1200
6
1finalrd (7) hirsute; urgency=medium7finalrd (7) hirsute; urgency=medium
28
3 * Drop build-dependency on obsolete dh-systemd9 * Drop build-dependency on obsolete dh-systemd
diff --git a/finalrd.sh b/finalrd.sh
index cffa94b..f623f8c 100755
--- a/finalrd.sh
+++ b/finalrd.sh
@@ -25,12 +25,11 @@ mount -o remount,exec /run
25# our shutdown sequence is to be controled by systemd-shutdown which25# our shutdown sequence is to be controled by systemd-shutdown which
26# will unmount all the things, and run our hooks26# will unmount all the things, and run our hooks
2727
28LD=`grep -Eow '/.*ld-.*.so' /proc/self/maps | head -1`
29for bin in /bin/sh /lib/systemd/systemd-shutdown28for bin in /bin/sh /lib/systemd/systemd-shutdown
30do29do
31 rm -f /run/finalrd-libs.conf30 rm -f /run/finalrd-libs.conf
32 touch /run/finalrd-libs.conf31 touch /run/finalrd-libs.conf
33 for lib in `$LD --list $bin | grep -Eow "/.* "`32 for lib in `LD_TRACE_LOADED_OBJECTS=1 $bin | grep -Eow "/.* "`
34 do33 do
35 if [ "$lib" = '=>' ]34 if [ "$lib" = '=>' ]
36 then35 then

Subscribers

People subscribed via source and target branches