-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add apt cacher proxy configuration bits
- Loading branch information
Showing
12 changed files
with
1,146 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ dist/ | |
scale_build.egg-info/ | ||
scale_build/__pycache__/ | ||
venv-* | ||
conf/tn/root/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.