# File lib/rubyipmi/freeipmi/commands/chassis.rb, line 38
    def bootdevice(device, reboot=false, persistent=false)
      if config.bootdevices.include?(device)
        bootstatus = config.bootdevice(device, persistent)
        if reboot and bootstatus
          power.cycle
        end

      else
        raise "Device with name: #{device} is not a valid boot device for host #{options["hostname"]}"
      end
    end