Disable console over Serial in Dev on RPi3?

@floion @Page
I had the same problem and this solution works. I have a few question though :

  • Are the remount and reboot only necessary to persist the service state or are they necessary to stop the service ?
  • I tried systemctl stop serial-getty@ttyAMA0.service which didn’t produce any error, but didn’t free my serial port. Is it necessary to do the operation on serial0 and not on ttyAMA0 to make it work ?