15 lines
282 B
Bash
Executable File
15 lines
282 B
Bash
Executable File
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
|
|
# Check and set environment, and mount file system.
|
|
. chroot-shell/_do_self_checks.sh
|
|
|
|
cd $FILE_SYSTEM_DIR
|
|
if [ ! -z "$CHROOT_MOUNT_SET" ]; then
|
|
for i in $CHROOT_MOUNT_SET; do
|
|
sudo mount --bind /$i ./$i
|
|
done
|
|
fi
|
|
sudo /usr/sbin/chroot . /bin/bash
|
|
|