Verified on 22.04, this issue is fixed.
And on 20.04, I installed finalrd 9 and plymouth 0.9.5, this issue is also gone.
Here is the patch for finalrd, but for plymouth, there are so many changes from 0.9.4, so I gave up to find the patches, let's fix this issue on 22.04.
[Service]
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
# our shutdown sequence is to be controled by systemd-shutdown which
# will unmount all the things, and run our hooks
-LD=`grep -Eow '/.*ld-.*.so' /proc/self/maps | head -1`
for bin in /bin/sh /lib/systemd/systemd-shutdown
do
rm -f /run/finalrd-libs.conf
touch /run/finalrd-libs.conf
- for lib in `$LD --list $bin | grep -Eow "/.* "`
+ for lib in `LD_TRACE_LOADED_OBJECTS=1 $bin | grep -Eow "/.* "`
do
if [ "$lib" = '=>' ]
then
Verified on 22.04, this issue is fixed.
And on 20.04, I installed finalrd 9 and plymouth 0.9.5, this issue is also gone.
Here is the patch for finalrd, but for plymouth, there are so many changes from 0.9.4, so I gave up to find the patches, let's fix this issue on 22.04.
diff --git a/finalrd.service b/finalrd.service man:finalrd( 1) local-fs. target boot.mount boot.automount local-fs. target shutdown. target umount.target shutdown. target ncies=no
index e67d177..b31705f 100644
--- a/finalrd.service
+++ b/finalrd.service
@@ -6,6 +6,7 @@ Documentation=
After=
Wants=
Conflicts=
+Before=
DefaultDepende
[Service]
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
# our shutdown sequence is to be controled by systemd-shutdown which
# will unmount all the things, and run our hooks
-LD=`grep -Eow '/.*ld-.*.so' /proc/self/maps | head -1` systemd- shutdown libs.conf libs.conf LOADED_ OBJECTS= 1 $bin | grep -Eow "/.* "`
for bin in /bin/sh /lib/systemd/
do
rm -f /run/finalrd-
touch /run/finalrd-
- for lib in `$LD --list $bin | grep -Eow "/.* "`
+ for lib in `LD_TRACE_
do
if [ "$lib" = '=>' ]
then