Last active
April 16, 2017 14:48
-
-
Save audebert/3833d552413f6355f7416192870a1943 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# Run this script if you are installing from an Arch Linux install media. | |
# It does a standalone clone and setup of sadm from the main git repository. If | |
# you are developping on SADM, directly use install_scripts/setup_sadm.sh | |
REPO_URL=https://github.com/prologin/sadm | |
BRANCH=2017-halfr-breaks-everything | |
if mount | grep --quiet archiso; then | |
# When running on the Arch Linux install media, increase the overlay work dir | |
# size | |
echo '[+] Increasing the size of /run/archiso/cowspace' | |
mount -o remount,size=2G /run/archiso/cowspace | |
fi | |
echo '[+] Installing dependencies' | |
pacman -Sy --needed --noconfirm git | |
echo '[+] Cloning sadm' | |
cd /root | |
git clone --branch $BRANCH $REPO_URL sadm | |
echo '[+] Starting Arch Linux bootstrap script' | |
./sadm/install_scripts/bootstrap.sh | |
echo '[+] Copying SADM install' | |
cp -r sadm /mnt/root/sadm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment