summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hooks/0020-create-mtab-symlink.hook.chroot10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/hooks/0020-create-mtab-symlink.hook.chroot b/share/hooks/0020-create-mtab-symlink.hook.chroot
new file mode 100755
index 000000000..0cae147b0
--- /dev/null
+++ b/share/hooks/0020-create-mtab-symlink.hook.chroot
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# Create /etc/mtab symlink
+
+if [ ! -L /etc/mtab ]
+then
+ ln -s /proc/mtab /etc/mtab
+fi