<commit_before>#!/bin/bash
#
# See https://help.ubuntu.com/community/LiveCDCustomizationFromScratch#Make_the_ChRoot_Environment
#
#
set -e
source "`dirname \"$0\"`/configuration.sh"

echo "01 > install required packages"
apt-get -qq update
apt-get -y -qq install debootstrap

echo "01 > create the folder for the iso"
mkdir -p "$work"
cd "$work"

echo "01 > create the file system"
mkdir -p "$chroot"
debootstrap --arch="$ARCH" "$RELEASE" "$chroot"

echo "01 > prepare the os"
mount --bind /dev "$chroot/dev"

cp /etc/hosts "$chroot/etc/hosts"
cp /etc/resolv.conf "$chroot/etc/resolv.conf"

echo "01 > update the chroot environment"
cp -r "$chroot_update/"* "$chroot"
<commit_msg>added output for debootstrap failure<commit_after>#!/bin/bash
#
# See https://help.ubuntu.com/community/LiveCDCustomizationFromScratch#Make_the_ChRoot_Environment
#
#
set -e
source "`dirname \"$0\"`/configuration.sh"

echo "01 > install required packages"
apt-get -qq update
apt-get -y -qq install debootstrap

echo "01 > create the folder for the iso"
mkdir -p "$work"
cd "$work"

echo "01 > create the file system"
mkdir -p "$chroot"
if ! debootstrap --arch="$ARCH" "$RELEASE" "$chroot" 
then
  echo "01 > debootstrap failed"
  cat "$chroot/debootstrap/debootstrap.log"
  exit 1
fi

echo "01 > prepare the os"
mount --bind /dev "$chroot/dev"

cp /etc/hosts "$chroot/etc/hosts"
cp /etc/resolv.conf "$chroot/etc/resolv.conf"

echo "01 > update the chroot environment"
cp -r "$chroot_update/"* "$chroot"

{'fraction_non_alphanumeric': 0.14969656102494944, 'fraction_numerical': 0.016857720836142953, 'mean_word_length': 4.338129496402877, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, 'https://': 2, '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': '3946065', 'n_tokens_mistral': 561, 'n_tokens_neox': 528, 'n_words': 159}