Exemple #1
0
 def builder(subvol: Subvol):
     subvol.create()
     # Guarantee standard / permissions.  This could be a setting,
     # but in practice, probably any other choice would be wrong.
     subvol.run_as_root(['chmod', '0755', subvol.path()])
     subvol.run_as_root(['chown', 'root:root', subvol.path()])
     _ensure_meta_dir_exists(subvol)
Exemple #2
0
 def create(self, rel_path: Bytey) -> Subvol:
     subvol = Subvol(self._rel_path(rel_path))
     subvol.create()
     self.subvols.append(subvol)
     return subvol
Exemple #3
0
 def build(self, subvol: Subvol):
     subvol.create()
     # Guarantee standard permissions. This could be made configurable,
     # but in practice, probably any other choice would be wrong.
     subvol.run_as_root(['chmod', '0755', subvol.path()])
     subvol.run_as_root(['chown', 'root:root', subvol.path()])