Skip to content

Instantly share code, notes, and snippets.

@audebert
Last active April 16, 2017 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save audebert/3833d552413f6355f7416192870a1943 to your computer and use it in GitHub Desktop.
Save audebert/3833d552413f6355f7416192870a1943 to your computer and use it in GitHub Desktop.
#!/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