解决方法:
vi /etc/gdm/custom.conf
按a编辑,
[daemon] AutomaticLoginEnable=True AutomaticLogin=root [security]
:回车,wq退出,reboot重启