Codebase list live-build / b6004d1 share / hooks / 0020-create-mtab-symlink.hook.chroot
b6004d1

Tree @b6004d1 (Download .tar.gz)

0020-create-mtab-symlink.hook.chroot @b6004d1raw · history · blame

#!/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