def set_id(device, minor, system_id):
 _validate_device(device)
 try:
  int(minor)
 except Exception:
  raise CommandExecutionError('Invalid minor number passed to partition.set_id')
 if (system_id not in system_types()):
  raise CommandExecutionError('Invalid system_id passed to partition.set_id')
 cmd = 'sfdisk --change-id {0} {1} {2}'.format(device, minor, system_id)
 out = __salt__['cmd.run'](cmd).splitlines()
 return out

def set_id ( device , minor , system_id ) : _validate_device ( device ) try : int ( minor ) except Exception : raise CommandExecutionError ( 'Invalid minor number passed to partition.set_id' ) if ( system_id not in system_types ( ) ) : raise CommandExecutionError ( 'Invalid system_id passed to partition.set_id' ) cmd = 'sfdisk --change-id {0} {1} {2}' . format ( device , minor , system_id ) out = __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) return out
sets the system id for the partition .