Adding ugly hack so that script is able to unmount the rootfs/image
This commit is contained in:
parent
0204dc0793
commit
4f0909c49b
1 changed files with 8 additions and 0 deletions
|
@ -22,3 +22,11 @@ on_chroot << EOF
|
||||||
apt-get clean
|
apt-get clean
|
||||||
find /var/log -type f -exec rm {} \;
|
find /var/log -type f -exec rm {} \;
|
||||||
EOF
|
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
|
||||||
|
|
Loading…
Reference in a new issue