diff options
Diffstat (limited to 'share/hooks/live/0020-create-mtab-symlink.hook.chroot')
-rwxr-xr-x | share/hooks/live/0020-create-mtab-symlink.hook.chroot | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/share/hooks/live/0020-create-mtab-symlink.hook.chroot b/share/hooks/live/0020-create-mtab-symlink.hook.chroot new file mode 100755 index 000000000..5c2fa64ae --- /dev/null +++ b/share/hooks/live/0020-create-mtab-symlink.hook.chroot @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +# Create /etc/mtab symlink, replacing a regular file if necessary + +if [ ! -L /etc/mtab ] +then + rm -f /etc/mtab + ln -s /proc/mounts /etc/mtab +fi |