9

デュアルブート システムで作業しており、次の 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"

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

bless コマンドに新しい変更はありますか?

助けてくれてありがとう。

4

1 に答える 1

14

最初にシステム整合性保護を無効にする必要があります。

  1. コンピューターを再起動し、起動中に Command-R を押したままにして、回復モードで起動します。
  2. 起動したら、トップメニューバーの「ユーティリティ > ターミナル」に移動します。
  3. ターミナル ウィンドウに入力csrutil disableし、リターン キーを押します。
  4. マシンを再起動すると、システム整合性保護が無効になります。

ソース: http://mattjanik.ca/blog/2015/10/01/refind-on-el-capitan/

于 2015-10-05T15:53:32.590 に答える