aboutsummarylogtreecommitdiffstats
path: root/hook
diff options
context:
space:
mode:
authornikp1232018-04-07 15:06:55 +0200
committernikp1232018-04-07 15:06:55 +0200
commit99573fca2ae6380a50bec32e5fe0491dbc8556b1 (patch)
tree73c66ccaebc9a81d66023165e4685b002c9c4259 /hook
downloadaur-mkinitcpio-dir.tar.gz
Initial commit
Diffstat (limited to 'hook')
-rw-r--r--hook9
1 files changed, 9 insertions, 0 deletions
diff --git a/hook b/hook
new file mode 100644
index 000000000000..2ae023927d61
--- /dev/null
+++ b/hook
@@ -0,0 +1,9 @@
+run_hook() {
+ dir_pre_mount_handler="${mount_handler:-default_mount_handler}"
+ mount_handler=dir_mount_handler
+}
+
+dir_mount_handler() {
+ $dir_pre_mount_handler "$1"
+ mount --bind -- "$1/$dir" "$1"
+}