From 4e89b2ce333566bad6c287fe52d9729905d1c5a3 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 7 Apr 2018 22:53:07 +0200 Subject: [PATCH] Fixing the previous dirty workaround... --- stage3/00-install-yunohost/00-run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stage3/00-install-yunohost/00-run.sh b/stage3/00-install-yunohost/00-run.sh index 2783d8c..2704081 100755 --- a/stage3/00-install-yunohost/00-run.sh +++ b/stage3/00-install-yunohost/00-run.sh @@ -21,12 +21,14 @@ echo "Cleaning ..." on_chroot << EOF apt-get clean find /var/log -type f -exec rm {} \; +ps -ef --forest | grep qemu EOF # Gotta manually kill those stuff which are some sort of daemon running # for slapd / nscd / nslcd ... otherwise the script is unable to unmount # the rootfs/image after that ? -for PID in `ps -ef --forest | awk '$8=="/usr/bin/qemu-arm-static" {print $2}'` +for PID in `ps -ef --forest | grep "qemu-arm-static" | grep "nginx\|nscd\|slapd\|nslcd" | awk '{print $2}'` do + echo "Killing $PID" kill -9 $PID done