Re: [PATCH] Unmount all mounts in chroot
Juan Jesús Ojeda Croissier wrote:
> I did in another project time ago something similar, but you have to
> keep in mind that some times there are nested mount points and you
> need to unmount them in the proper order.
indeed...
+ for DIRECTORY in $(awk '/\/chroot\// { print $2 }' /proc/mounts | sort -r)
...but the /chroot/ pattern is too broad; in fact we only want to
unmount the mounts of the particular build we're in. so there needs to
be a ${PWD} inside.
Regards,
Daniel
--
Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email: daniel.baumann@panthera-systems.net
Internet: http://people.panthera-systems.net/~daniel-baumann/
Reply to: