burrow-pi-img/stage2/04-custom-tweaks/01-run.sh
Ani Balasubramaniam 45c8dd1406 1. Remove config from .gitignore
2. Add minimal, user-neutral config
3. Change Dockerfile to work around issues building buster on 64-bit hosts
4.  Modify export-image/prerun.sh to make sure newly created loop devices are available to mount
5. Add custom setup script 01-run.sh in stage2/04-custom-tweaks
2020-03-18 16:55:19 -07:00

16 lines
458 B
Bash
Executable File

#!/bin/bash -e
# Install Docker using default installation script
# and perform post-install steps to not require
# sudo for docker commands
echo "Installing docker..."
on_chroot << EOF
curl -sSL get.docker.com | sh
usermod -aG docker ${FIRST_USER_NAME}
EOF
# Ensure ${FIRST_USER_NAME} is set up for auto-login
echo "Setting up ${FIRST_USER_NAME} for auto-login"
on_chroot << EOF
SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_boot_behaviour B4
EOF