From e84476a7e5bc2a96edd5c97fcddb1ffb1938b8fc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 1 May 2014 17:40:11 +0200 Subject: Adding hook to create /etc/mtab as a symlink to /proc/mtab if not already existing (Closes: #746570). --- share/hooks/0020-create-mtab-symlink.hook.chroot | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 share/hooks/0020-create-mtab-symlink.hook.chroot (limited to 'share') 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 -- cgit v1.2.3