diff options
Diffstat (limited to 'auxmount_hook')
-rw-r--r-- | auxmount_hook | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/auxmount_hook b/auxmount_hook new file mode 100644 index 000000000000..ced0b1eff325 --- /dev/null +++ b/auxmount_hook @@ -0,0 +1,16 @@ +run_latehook() { + local _postfix _d + + if [ ! -z "$auxmnt" ]; then + for _d in /*; do + case $_d in + /new_root*) + _postfix=${_d#/new_root} + if [ ! -z "$_postfix" ] && [ -d /new_root/"$auxmnt"/root$_postfix ]; then + mount --bind $_d /new_root/"$auxmnt"/root$_postfix + fi + ;; + esac + done + fi +} |