<commit_before>chroot-diff-disks
=================

Chroot helpers to enter chroots and manage diff-images of chroots.<commit_msg>Added README file<commit_after># chroot-diff-disks

## Contains

- A helper script to set up functioning chroot directories with ease.
- A script to make many small copies of an existing chroot by using diff images.

The installation of `avfs` is required for the `new` script to work.



## Usage

### enter
`enter` simply executes the chroot command on the directory but mounts `/sys`, `/proc` and `/dev` in the chroot and also cleans up after you exit the chroot.

### new

`new` allows you to create a diff image on top of a base chroot directory.

`new` creates a new directory in `<base-dir>/vm/<chroot-name>` and uses this as mount point.

`<base-dir>/diff/<chroot-name> is the directory that holds the diff files.

`<base-dir>/base/<type-name>` holds the different base directories that can be used.
You can create new base images/types in this folder using `debootstrap` and `enter`.
{'fraction_non_alphanumeric': 0.10273972602739725, 'fraction_numerical': 0.0, 'mean_word_length': 4.219387755102041, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6022880', 'n_tokens_mistral': 306, 'n_tokens_neox': 292, 'n_words': 143}