Fixes #2782 - only write to /etc/mtab if it is not a link

1 job for master in 46 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #677
gitpull

00:00:46