summaryrefslogtreecommitdiff
path: root/share/hooks/0020-create-mtab-symlink.hook.chroot
blob: 68587a5f6be373f0a424ee3901dce3f4675ac629 (plain)
1
2
3
4
5
6
7
8
9
10
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/mtab /etc/mtab
fi