forked from cyoung/stratux
-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update raspi debian to latest packages
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,40 @@ | ||
#!/bin/bash | ||
|
||
# DO NOT CALL BE DIRECTLY! | ||
# DO NOT CALL ME DIRECTLY! | ||
# This script is called by mk_europe_edition.sh via qemu | ||
|
||
cd /root/stratux | ||
source /root/.bashrc | ||
|
||
apt install --yes libjpeg8-dev libconfig9 | ||
# Make sure that the upgrade doesn't restart services in the chroot.. | ||
mkdir /root/fake | ||
ln -s /bin/true /root/fake/initctl | ||
ln -s /bin/true /root/fake/invoke-rc.d | ||
ln -s /bin/true /root/fake/restart | ||
ln -s /bin/true /root/fake/start | ||
ln -s /bin/true /root/fake/stop | ||
ln -s /bin/true /root/fake/start-stop-daemon | ||
ln -s /bin/true /root/fake/service | ||
ln -s /bin/true /root/fake/deb-systemd-helper | ||
|
||
# Fake a proc FS for raspberrypi-sys-mods_20170519_armhf... Extend me as needed | ||
mkdir -p /proc/sys/vm/ | ||
|
||
apt update | ||
PATH=/root/fake:$PATH apt dist-upgrade --yes | ||
PATH=/root/fake:$PATH apt install --yes libjpeg8-dev libconfig9 | ||
apt-get clean | ||
|
||
rm -r /proc/* | ||
rm -r /root/fake | ||
|
||
# For some reason, qemu build fails unless we use a single compilation thread. Compilation takes quite long... | ||
export GOMAXPROCS=1 | ||
go get -u github.com/kidoman/embd/embd | ||
make clean | ||
# Sometimes go build fails for some reason.. we will just try three times and hope for the best | ||
make | ||
make | ||
make | ||
make install | ||
# systemctl daemon-reload doesn't work in qemu because there is no systemd running. Needed? |