diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2014-05-01 17:40:11 +0200 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2014-05-01 17:40:11 +0200 |
commit | e84476a7e5bc2a96edd5c97fcddb1ffb1938b8fc (patch) | |
tree | 8f7b6c44a2bb1235efd79080bfc77745c96b0852 | |
parent | 7f1f542cea5f85ac4f0d364687d646f283dde598 (diff) | |
download | vyos-live-build-e84476a7e5bc2a96edd5c97fcddb1ffb1938b8fc.tar.gz vyos-live-build-e84476a7e5bc2a96edd5c97fcddb1ffb1938b8fc.zip |
Adding hook to create /etc/mtab as a symlink to /proc/mtab if not already existing (Closes: #746570).
-rwxr-xr-x | share/hooks/0020-create-mtab-symlink.hook.chroot | 10 |
1 files changed, 10 insertions, 0 deletions
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 |