forked from RPi-Distro/pi-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78444ea
commit 84fac31
Showing
9 changed files
with
141 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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
deploy/* | ||
work/* | ||
config | ||
postrun.sh | ||
SKIP | ||
SKIP_IMAGES | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
IMG_NAME=omadapi | ||
# no mongo builds for bookworm | ||
RELEASE=bookworm | ||
LOCALE_DEFAULT="en_US.UTF-8" | ||
TARGET_HOSTNAME="omadapi" | ||
KEYBOARD_KEYMAP=us | ||
KEYBOARD_LAYOUT="English (US)" | ||
TIMEZONE_DEFAULT=UTC | ||
FIRST_USER_NAME=omada | ||
FIRST_USER_PASS=omada | ||
ENABLE_SSH=1 | ||
STAGE_LIST="stage0 stage1 stage2 stageomada" | ||
# this is my home apt cache - get lots of failing builds without a cache... | ||
# im running squid-deb-proxy | ||
APT_PROXY=http://squid.lan.asio:8000 | ||
DISABLE_FIRST_BOOT_USER_RENAME=1 |
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,2 @@ | ||
gnupg | ||
curl |
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,15 @@ | ||
#!/bin/bash | ||
# | ||
# https://github.com/themattman/mongodb-raspberrypi-binaries provides arm64 binaries but not for 4.4: | ||
# * https://github.com/themattman/mongodb-raspberrypi-binaries/issues/6 | ||
# | ||
# So i create my own package (USE AT OWN RISK!) | ||
# * https://github.com/GeoffWilliams/mongodb-raspberrypi-binaries/releases/tag/v4.4.26 | ||
|
||
on_chroot << EOF | ||
mkdir -p /packages | ||
cd /packages | ||
curl -LO https://github.com/GeoffWilliams/mongodb-raspberrypi-binaries/releases/download/v4.4.26/mongodb-org-server-raspberrypi_4.4.26_arm64.deb | ||
apt install -y /packages/mongodb-org-server-raspberrypi_4.4.26_arm64.deb | ||
EOF | ||
|
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,4 @@ | ||
wget | ||
openjdk-17-jdk-headless | ||
jsvc | ||
chromium |
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,28 @@ | ||
#!/bin/bash | ||
# https://www.tp-link.com/au/support/download/omada-software-controller/#Controller_Software | ||
on_chroot << EOF | ||
mkdir -p /packages | ||
cd /packages | ||
wget https://static.tp-link.com/upload/software/2023/202309/20230920/Omada_SDN_Controller_v5.12.7_Linux_x64.deb | ||
# wonder why this is needed...? | ||
# https://superuser.com/questions/1469602/tp-link-omada-controller-cannot-find-any-vm-in-java-home-usr-lib-jvm-default | ||
mkdir /usr/lib/jvm/java-17-openjdk-arm64/lib/arm64 | ||
ln -s /usr/lib/jvm/java-17-openjdk-arm64/lib/server /usr/lib/jvm/java-17-openjdk-arm64/lib/arm64/ | ||
# nasty hack to prevent trying to run omada in quemu | ||
mv /usr/bin/jsvc /usr/bin/jsvc.nouse | ||
echo "exit 0" >> /usr/bin/jsvc | ||
apt install -y ./Omada_SDN_Controller_v5.12.7_Linux_x64.deb | ||
mv /usr/bin/jsvc.nouse /usr/bin/jsvc | ||
# omada does something strange with the mongod binary | ||
if [ -e /mongod ] ; then | ||
rm /mongod | ||
fi | ||
ln -s /usr/local/bin/mongod /opt/tplink/EAPController/bin/mongod | ||
# omada self enables on boot so were done | ||
EOF |
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,4 @@ | ||
IMG_SUFFIX="-full" | ||
if [ "${USE_QEMU}" = "1" ]; then | ||
export IMG_SUFFIX="${IMG_SUFFIX}-qemu" | ||
fi |
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,5 @@ | ||
#!/bin/bash -e | ||
|
||
if [ ! -d "${ROOTFS_DIR}" ]; then | ||
copy_previous | ||
fi |