The halt command uses 'sort -ur' to sort the output of /proc/mounts; this sorts by the mount source rather than the mount point. It should be 'sort -k2 -ur' to sort by the second field (mount point); this will put longer names first (and therefore presumably unmount nested entries before their parents).
Created attachment 84818 [details, diff] context diff against halt.sh
thanks, merged into svn
This bug is ok so invalid as awk only echos field 2, so there is no need to specify a key to sort on.
Spanky, you should know better than to blindly trust someone without testing it first. Then bugs like #131001 would never happen :P