Created
September 16, 2016 03:16
-
-
Save gpwclark/738df03565750d19a1b647897eaf31d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Adapted from paradigm's strata setup instructions on | |
# bedrocklinux.org | |
# Viva Bedrock Linux! | |
if [ $# -eq 0 ]; then | |
echo "No arguments provided" | |
exit 1 | |
fi | |
export STRATUM=$1 | |
if [ -d $STRATUM ]; then | |
cp /etc/resolv.conf $STRATUM/etc | |
mount -t proc proc $STRATUM/proc | |
mount -t sysfs sysfs $STRATUM/sys | |
mount --bind /dev $STRATUM/dev | |
mount --bind /dev/pts $STRATUM/dev/pts | |
mount --bind /run $STRATUM/run | |
chroot $STRATUM /bin/sh | |
else | |
echo $STRATUM not a directory | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Adapted from paradigm's strata setup instructions on | |
# bedrocklinux.org | |
# Viva Bedrock Linux! | |
if [ $# -eq 0 ]; then | |
echo "No arguments provided" | |
exit 1 | |
fi | |
export STRATUM=$1 | |
if [ -d $STRATUM ]; then | |
umount $STRATUM/proc | |
umount $STRATUM/sys | |
umount $STRATUM/dev/pts | |
umount $STRATUM/dev | |
umount $STRATUM/run | |
else | |
echo not a directory | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment