summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2014-05-01 17:40:11 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2014-05-01 17:40:11 +0200
commite84476a7e5bc2a96edd5c97fcddb1ffb1938b8fc (patch)
tree8f7b6c44a2bb1235efd79080bfc77745c96b0852
parent7f1f542cea5f85ac4f0d364687d646f283dde598 (diff)
downloadvyos-live-build-e84476a7e5bc2a96edd5c97fcddb1ffb1938b8fc.tar.gz
vyos-live-build-e84476a7e5bc2a96edd5c97fcddb1ffb1938b8fc.zip
Adding hook to create /etc/mtab as a symlink to /proc/mtab if not already existing (Closes: #746570).
-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