<commit_before>#!/usr/bin/env bash

path=$1

mkdir ${path}/users ${path}/jail
mkdir ${path}/jail/etc ${path}/jail/pipes
mkdir ${path}/schroot

config="
CHROOT_DIRECTORY=\${FOO_BAR}

SETUP_COPYFILES=\"../..${path}/schroot/copyfiles\"
SETUP_NSSDATABASES=\"../..${path}/schroot/nssdatabases\"
SETUP_FSTAB=\"../..${path}/schroot/fstab\"
"

fstab="
${path}/root/bin   /bin    none ro,bind 0 0
${path}/root/lib   /lib    none ro,bind 0 0
${path}/root/lib64 /lib64  none ro,bind 0 0
${path}/utils      /utils  none ro,bind 0 0
"

echo "${fstab}"         > ${path}/schroot/fstab
echo "${config}"        > ${path}/schroot/config
echo "/etc/resolv.conf" > ${path}/schroot/copyfiles
echo ""                 > ${path}/schroot/nssdatabases

scheme="
[scheme]
type=directory
directory=${path}/jail
groups=users
root-groups=root,sudo
profile=../../home/joel/dev/repl/schroot
shell=/bin/bash
foo.bar=/home/joel/dev/repl/jail/
user-modifiable-keys=foo.bar
"

echo "${scheme}" > /etc/schroot/chroot.d/scheme.conf<commit_msg>fixed bug in chroot init script<commit_after>#!/usr/bin/env bash

path=$1

mkdir ${path}/users ${path}/jail
mkdir ${path}/jail/etc ${path}/jail/pipes
mkdir ${path}/schroot

config="
CHROOT_DIRECTORY=\${FOO_BAR}

SETUP_COPYFILES=\"../..${path}/schroot/copyfiles\"
SETUP_NSSDATABASES=\"../..${path}/schroot/nssdatabases\"
SETUP_FSTAB=\"../..${path}/schroot/fstab\"
"

fstab="
${path}/root/bin   /bin    none ro,bind 0 0
${path}/root/lib   /lib    none ro,bind 0 0
${path}/root/lib64 /lib64  none ro,bind 0 0
${path}/utils      /utils  none ro,bind 0 0
"

echo "${fstab}"         > ${path}/schroot/fstab
echo "${config}"        > ${path}/schroot/config
echo "/etc/resolv.conf" > ${path}/schroot/copyfiles
echo ""                 > ${path}/schroot/nssdatabases

scheme="
[scheme]
type=directory
directory=${path}/jail
groups=users
root-groups=root,sudo
profile=../../${path}/schroot
shell=/bin/bash
foo.bar=${path}/jail/
user-modifiable-keys=foo.bar
"

echo "${scheme}" > /etc/schroot/chroot.d/scheme.conf
{'fraction_non_alphanumeric': 0.2077727952167414, 'fraction_numerical': 0.012954658694569009, 'mean_word_length': 3.594965675057208, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2695818', 'n_tokens_mistral': 807, 'n_tokens_neox': 757, 'n_words': 134}