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:          [email protected]
Internet:       http://people.panthera-systems.net/~daniel-baumann/


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to