[X2Go-Commits] [live-build-x2go] 41/59: udevadm has a command "settle", so no need to loop and wait for it to settle.

git-admin at x2go.org git-admin at x2go.org
Mon Nov 28 19:34:57 CET 2022


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/openbox-magic-pixel-workaround-buster
in repository live-build-x2go.

commit 4c873e1cfd8b967bc2c09ccdfea3ae6f58926af9
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Sat Jun 27 17:48:28 2020 +0200

    udevadm has a command "settle", so no need to loop and wait for it to
    settle.
---
 .../includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia   | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia b/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
index 3391a61..02fa937 100755
--- a/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
+++ b/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
@@ -71,10 +71,9 @@ GetSSHHostKeysFromMedia ()
                         echo -n "\n$(date +'%F | %T | ')'$0' Waiting for udev to start ..." | tee -a /dev/tty8
                         sleep 1;
                 done
-                while ps --no-header -C udevadm | grep -q udevadm ; do
-                        echo -n "\n$(date +'%F | %T | ')'$0' Waiting for udev to process all events ..." | tee -a /dev/tty8
-                        sleep 1;
-                done
+		echo -n "\n$(date +'%F | %T | ')'$0' Waiting for udev to process all events ..." | tee -a /dev/tty8
+		udevadm settle
+		echo -n "\n$(date +'%F | %T | ')'$0' ... all events have been processed." | tee -a /dev/tty8
 
                 # list devices (and mountpoints, if present)
                 LABELMPLIST=$(lsblk -oLABEL,RM,NAME,MOUNTPOINT -ln)

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list