Skip to content

Commit

Permalink
Add apt cacher proxy configuration bits
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed May 12, 2024
1 parent 91b9ab4 commit 455ca23
Show file tree
Hide file tree
Showing 12 changed files with 1,144 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -9,3 +9,4 @@ dist/
scale_build.egg-info/
scale_build/__pycache__/
venv-*
conf/tn/root/*
12 changes: 12 additions & 0 deletions change_branches.sh
@@ -0,0 +1,12 @@
#!/bin/sh


branch="master"
cd /mnt/evo/build

for i in "truenas" "truenas_files" "middlewared"; do
echo "\nupdating $i"
git -C sources/"$i" fetch origin
git -C sources/"$i" checkout "$branch"
git -C sources/"$i" reset --hard origin/"$branch"
done
21 changes: 21 additions & 0 deletions chroot.sh
@@ -0,0 +1,21 @@
#!/bin/sh

umount -f ./tmp/b/proc
umount -f ./tmp/b/sys
umount -f ./tmp/b/packages
rm -rf ./tmp/b
mkdir ./tmp/b
unsquashfs -f -d ./tmp/b ./tmp/cache/basechroot-package.squashfs
mkdir -p ./tmp/b/proc ./tmp/b/sys ./tmp/b/packages
mount proc ./tmp/b/proc -t proc
mount sysfs ./tmp/b/sys -t sysfs
mount --bind ./tmp/pkgdir ./tmp/b/packages

echo "Setup basechroot directory for chroot successfully"

chroot ./tmp/b bash

echo "Cleaning up mounts"
umount -f ./tmp/b/proc
umount -f ./tmp/b/sys
umount -f ./tmp/b/packages
14 changes: 14 additions & 0 deletions conf/build.manifest
Expand Up @@ -102,6 +102,8 @@ base-packages:
install_recommends: true
- name: nslcd
install_recommends: true
- name: apt-cacher-ng
install_recommends: true
- name: nvidia-container-toolkit
install_recommends: true
- name: nvidia-smi
Expand Down Expand Up @@ -138,6 +140,18 @@ base-packages:
install_recommends: true
- name: openzfs-zfs-initramfs
install_recommends: true
- name: build-essential
install_recommends: true
- name: locales
install_recommends: true
- name: debootstrap
install_recommends: true
- name: xorriso
install_recommends: true
- name: squashfs-tools
install_recommends: true
- name: unzip
install_recommends: true
- name: nvme-cli
install_recommends: true
- name: convmv
Expand Down
1 change: 1 addition & 0 deletions conf/reference-files/etc/group
Expand Up @@ -79,6 +79,7 @@ libvirt-qemu:x:64055:libvirt-qemu
haproxy:x:130:
uuidd:x:131:
i2c:x:132:
apt-cacher-ng:x:180:
sgx:x:133:
_ssh:x:134:
ntpsec:x:135:
Expand Down
1 change: 1 addition & 0 deletions conf/reference-files/etc/passwd
Expand Up @@ -45,6 +45,7 @@ webdav:x:666:666:WebDAV Anonymous User:/var/empty:/usr/sbin/nologin
libvirt-qemu:x:64055:106:Libvirt Qemu,,,:/var/lib/libvirt:/usr/sbin/nologin
haproxy:x:126:130::/var/lib/haproxy:/usr/sbin/nologin
uuidd:x:127:131::/run/uuidd:/usr/sbin/nologin
apt-cacher-ng:x:180:180::/var/cache/apt-cacher-ng:/usr/sbin/nologin
ntpsec:x:128:135::/nonexistent:/usr/sbin/nologin
tss:x:129:136:TPM software stack,,,:/var/lib/tpm:/bin/false
iperf3:x:130:137::/nonexistent:/usr/sbin/nologin
Expand Down

0 comments on commit 455ca23

Please sign in to comment.