OSX 10.11 El Capitan - 设置引导设备属性不起作用

Mat*_*att 7 macos terminal applescript bless

我正在使用双引导系统,并使用以下AppleScript设置启动卷:

    tell application "Finder" to if not (disk "SoundHD" exists) then do shell script "diskutil mount " & last word of (do shell script "diskutil list | grep 'Apple_HFS SoundHD'")

do shell script "bless -mount \"/Volumes/SoundHD\" -setBoot --nextonly" with administrator privileges

display notification "Next Boot: SoundHD" with title "Neustart"
Run Code Online (Sandbox Code Playgroud)

由于El Capitan脚本将不再工作,我在脚本编辑器中收到以下错误消息:

tell application "Finder"
   exists disk "SoundHD"
            --> true
    end tell
    tell current application
        do shell script "bless -mount \"/Volumes/SoundHD\" -setBoot --nextonly" with administrator privileges
            --> error "Could not set boot device property: 0xe00002bc" number 3
    Ergebnis:
    error "Could not set boot device property: 0xe00002bc" number 3
Run Code Online (Sandbox Code Playgroud)

祝福命令有一些新的变化吗?

谢谢你的帮助.

Har*_*rel 13

您必须先禁用系统完整性保护.

  1. 重新启动计算机,然后在启动时按住Command-R以启动进入恢复模式.
  2. 启动后,导航到顶部菜单栏中的"Utilities> Terminal".
  3. csrutil disable在终端窗口中输入并按返回键.
  4. 重新启动计算机,现在将禁用系统完整性保护.

来源:http://mattjanik.ca/blog/2015/10/01/refind-on-el-capitan/

  • 我们是否可以了解为什么必须这样做以及它是否是永久解决方案以及关闭SIP的问题是什么? (5认同)
  • 显然,macOS 现在在更新后重新激活了 CSR。伟大的。我对这家公司的厌恶感与日俱增。 (2认同)