Last active
February 25, 2024 13:09
-
-
Save AirStair/249c64b94ee5c74a40d65931f4504bea to your computer and use it in GitHub Desktop.
alpine chroot installing processs
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
# make "pwd" inside ssd disk folder | |
ROOT_DIR="$(pwd)" | |
TEMP_DIR="$(mktemp -d)" | |
LOCAL_TEMP_DIR="$ROOT_DIR$TEMP_DIR" | |
mkdir "$ROOT_DIR/alpine" | |
sudo ln -s "$ROOT_DIR/alpine" / | |
mkdir "$LOCAL_TEMP_DIR" -p | |
sudo ln -s "$LOCAL_TEMP_DIR" /tmp | |
wget https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.14.0/alpine-chroot-install | |
sudo sh "$ROOT_DIR/alpine-chroot-install" -i "$ROOT_DIR" -t "$TEMP_DIR" | |
rm "$ROOT_DIR/alpine-chroot-install" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment