2018-05-24 22:43:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -eux
|
2022-03-04 15:12:41 +00:00
|
|
|
cd "$(dirname ${BASH_SOURCE:0})/.."
|
|
|
|
|
2018-05-24 22:43:11 +00:00
|
|
|
apt-get update
|
2021-06-16 22:37:35 +00:00
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -o APT::Get::Always-Include-Phased-Updates=true -y dist-upgrade
|
2020-03-05 16:35:06 +00:00
|
|
|
mkdir -p /etc/systemd/system/zfs-mount.service.d/
|
|
|
|
cat >/etc/systemd/system/zfs-mount.service.d/override.conf <<EOF
|
|
|
|
[Unit]
|
|
|
|
After=zfs-load-module.service
|
2021-02-18 20:36:17 +00:00
|
|
|
ConditionPathExists=/dev/zfs
|
2020-03-05 16:35:06 +00:00
|
|
|
|
|
|
|
EOF
|
|
|
|
cp -r /etc/systemd/system/zfs-mount.service.d/ /etc/systemd/system/zfs-share.service.d/
|
|
|
|
systemctl daemon-reload
|
2022-03-04 17:34:49 +00:00
|
|
|
apt-get install \
|
|
|
|
-o APT::Get::Always-Include-Phased-Updates=true \
|
|
|
|
-y --no-install-recommends \
|
|
|
|
$(cat apt-deps.txt)
|
2018-05-24 22:43:11 +00:00
|
|
|
pip3 install -r requirements.txt
|
2021-07-02 01:49:40 +00:00
|
|
|
|
|
|
|
make gitdeps
|
|
|
|
|
|
|
|
PYTHONPATH=.:./curtin:./probert python3 setup.py build
|