From 4f0909c49b5e5f1ed3d273d042af856e097fd417 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 3 Apr 2018 16:03:36 +0200 Subject: [PATCH] Adding ugly hack so that script is able to unmount the rootfs/image --- stage3/00-install-yunohost/00-run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stage3/00-install-yunohost/00-run.sh b/stage3/00-install-yunohost/00-run.sh index 36d4fce..2783d8c 100755 --- a/stage3/00-install-yunohost/00-run.sh +++ b/stage3/00-install-yunohost/00-run.sh @@ -22,3 +22,11 @@ on_chroot << EOF apt-get clean find /var/log -type f -exec rm {} \; 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}'` +do + kill -9 $PID +done