Makefile: Move most of the provision process into build system

Tests:

- Performing a fresh container setup works.

- Performing a fresh VM setup works.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2024-02-12 19:17:14 -05:00
1 parent 808380ff52
commit ba55d8fe2e
3 files changed
+35 -34

No files matched your search

+1 -18
View File
@@ -159,24 +159,7 @@ set -xe pipefail
cd /freedombox/
sudo apt-get update
if [ $(lsb_release --release --short) != '10' ]; then
sudo DEBIAN_FRONTEND=noninteractive apt-get build-dep \
--no-install-recommends --yes .
fi
sudo make build install
sudo systemctl daemon-reload
# In case new dependencies conflict with old dependencies
sudo apt-mark hold freedombox
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-upgrade --yes \
$(sudo -u plinth /freedombox/run --develop --list-dependencies)
sudo apt-mark unhold freedombox
# Install additional packages
sudo DEBIAN_FRONTEND=noninteractive apt-get install --yes ncurses-term \
sshpass bash-completion
sudo make provision-dev
echo 'alias freedombox-develop="cd /freedombox; sudo -u plinth /freedombox/run --develop"' \
>> /home/fbx/.bashrc