[X2Go-Commits] [live-build-x2go] 24/108: udevadm settle is already running due to the udev service startup. Spawning a second copy causes the second copy to terminate immediately as if there were no open events - which breaks our loop. So instead, we need to monitor when the first/only instance terminates.
git-admin at x2go.org
git-admin at x2go.org
Wed Mar 20 22:13:09 CET 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch feature/openbox
in repository live-build-x2go.
commit 1537d97814cd13a4926b5f20ba263e7bca9ad24a
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Wed Feb 7 23:49:52 2018 +0100
udevadm settle is already running due to the udev service startup. Spawning a second copy causes the second copy to terminate immediately as if there were no open events - which breaks our loop. So instead, we need to monitor when the first/only instance terminates.
---
config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia b/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
index c5f4594..acd6ddf 100755
--- a/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
+++ b/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
@@ -71,7 +71,7 @@ GetSSHHostKeysFromMedia ()
echo -n "\n$(date +'%F | %T | ')'$0' Waiting for udev to start ..." | tee -a /dev/tty8
sleep 1;
done
- while ! udevadm settle; do
+ 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
--
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