network: fix auto connect key missing issue
grub2: refactor code, and fix dbus block issue