35

Chrome 更新导致部分 macOS 的文件系统损坏,无法重启 - OSCHINA

 4 years ago
source link: https://www.oschina.net/news/110181/chrome-stopped-macs-from-booting
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Chrome 更新导致部分 macOS 的文件系统损坏,无法重启

发布于 2019年09月27日

Chrome 近期自动更新的版本包含了一个 bug,影响到了 Mac 设备的系统完整性保护(SIP)功能以及 OS X 10.11 之前版本的 macOS 用户,并可能造成文件系统的损坏。

Google 在本周证实,近期自动更新的 Chrome 版本可能会造成 macOS 的文件系统损坏,有些用户反馈自安装新版 Chrome 之后无法重新启动系统。

最早发现此问题的是安装了 Avid Media Composer 视频编辑软件的 Mac Pro 用户,他们发现 Chrome 在自动更新之后,系统无法重新启动,原本以为是 Avid 软件问题,后来才知道是更新后的 Chrome 有 bug。

Google 很快承认了错误,并表示确实是 Chrome 的 bug 导致了问题的发生。如果在 macOS 系统中关闭了系统完整性保护功能(System Integrity Protection,SIP),那么 Chrome 的 bug 就会对文件系统造成影响。这个 bug 除了影响关闭 SIP 功能的 macOS 外,还会影响不支持 SIP 的 macOS,而 OS X 10.11 以前的版本即未支持 SIP。

外界推测,Mac Pro 及 Avid 用戶之所以最早发现此问题,是因为它们分别是相对较高级的硬件和软件,经常需要关闭系统的 SIP 功能以连接使用外部的影音设备,否则一般的用户很少会手动关闭 SIP。

最后,Google 提供了解决此问题的方案:受影响的 macOS 用户可重新启动至恢复模式(Recovery Mode),再输入特定指令以移除该 Chrome 更新,这样就可恢复受损的文件系统。

chroot /Volumes/Macintosh\ HD   # "Macintosh HD" is the default
rm -rf /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle
mv var var_back  # var may not exist, but this is fine
ln -sh private/var var
chflags -h restricted /var
chflags -h hidden /var
xattr -sw com.apple.rootless "" /var

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK