MForever78
2021-01-19 17:07:05 +08:00
确实是因为 FileVault 的原因,重启的时候如果不 unlock 是没有网络的。
如果不想关闭 FileVault,可以用 `fdesetup(8)` 这个工具。需要远程重启的时候用 `sudo fdesetup authrestart` 就可以跳过第一次强制 unlock 。具体可参考 fdesetup 的 man page 。
```
authrestart [-inputplist] [-delayminutes number_of_minutes_to_delay] [-verbose]
If FileVault is enabled on the current volume, it restarts the system, bypassing the initial unlock. The optional -delayminutes option can be used to delay the restart command for a set number of
minutes. A value of 0 represents 'immediately', and a value of -1 represents 'never'. The command may not work on all systems.
```