Merge changes from topic 'cpuset_setall' into oc-dev

* changes:
  init: use read_file and write_file to implement do_copy builtin
  init: Use std::string for write_file()