code: def _assemble_linux_cmdline(kv):
      
      # try to be compatible with Py2.4
      parts = []
      for k, v in kv.items():
          if v is None:
              parts.append(str(k))
          else:
              parts.append('%s=%s' % (k, v))
      return ' '.join(parts)
docs: Given a dictionary, assemble a Linux boot command line.