(self)
Sets this disk to be the startup disk.
Sets this disk to be the startup disk.
Sets this disk to be the startup disk .
def SetStartupDisk(self):
    """Sets this disk to be the startup disk."""
    self.Refresh()
    # pylint: disable=no-member
    if not self.Mounted():
      command = ["/usr/sbin/bless", "--device", self.deviceidentifier,
                 "--setBoot"]
    else:
      command = ["/usr/sbin/bless", "--mount", self.mountpoint, "--setBoot"]
    rc = gmacpyutil.RunProcess(command)[2]
    if rc == 0:
      return True
def SetStartupDisk ( self ) : self . Refresh ( ) # pylint: disable=no-member if not self . Mounted ( ) : command = [ "/usr/sbin/bless" , "--device" , self . deviceidentifier , "--setBoot" ] else : command = [ "/usr/sbin/bless" , "--mount" , self . mountpoint , "--setBoot" ] rc = gmacpyutil . RunProcess ( command ) [ 2 ] if rc == 0 : return True