/usr/share/live/build/hooks/0020-create-mtab-symlink.hook.chroot is in live-build 4.0.3-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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/mounts /etc/mtab
fi
|