Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BerryLan Mods (Raspberry Pi OS 11 bullseye) #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# pi-gen

Tool used to create Raspberry Pi OS images. (Previously known as Raspbian).
Tool used to create the berrylan.app Raspberry Pi OS images. (Previously known as Raspbian).

This tool is based on the pi-gen tool of the raspberrypi.org Raspberry Pi OS images.
It only adds http://repository.nymea.io to the repositories and preinstalls
nymea-networkmanager in the image to allow WiFi configuration via BerryLan.

nymea-networkmanager can be found at https://github.com/guh/nymea-networkmanager

## Dependencies

Expand Down
2 changes: 2 additions & 0 deletions config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
IMG_NAME=berrylan-bullseye
ENABLE_SSH=1
1 change: 0 additions & 1 deletion stage2/02-net-tweaks/00-packages
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek
raspberrypi-net-mods
dhcpcd5
net-tools
20 changes: 20 additions & 0 deletions stage2/04-berrylan/00-run-chroot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Add nymea repository
echo -e "\n## nymea repo\ndeb http://repository.nymea.io bullseye rpi\n#deb-src http://repository.nymea.io bullseye rpi" | tee /etc/apt/sources.list.d/nymea.list
wget -qO - http://repository.nymea.io/Repository.key | apt-key add -

# Set repository priority (prefere packages from raspbian section
cat <<EOM >/etc/apt/preferences.d/nymea
Package: *
Pin: release c=raspbian
Pin-Priority: 700

Package: *
Pin: origin repository.nymea.io c=main
Pin-Priority: 500
EOM

apt-get update
#!/bin/bash -e

systemctl enable ssh
systemctl disable dhcpcd
2 changes: 2 additions & 0 deletions stage2/04-berrylan/01-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
network-manager
nymea-networkmanager
4 changes: 4 additions & 0 deletions stage2/04-berrylan/01-run-chroot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -e

systemctl enable ssh
systemctl disable dhcpcd5
3 changes: 3 additions & 0 deletions stage2/04-berrylan/04-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sed -i 's/-a nymea -p nymea-box/-a "Raspberry Pi" -p "Raspberry Pi"/' ${ROOTFS_DIR}/lib/systemd/system/nymea-networkmanager.service


2 changes: 0 additions & 2 deletions stage2/EXPORT_NOOBS

This file was deleted.

Empty file added stage3/SKIP
Empty file.
Empty file added stage3/SKIP_IMAGES
Empty file.
Empty file added stage4/SKIP
Empty file.
Empty file added stage4/SKIP_IMAGES
Empty file.
Empty file added stage5/SKIP
Empty file.
Empty file added stage5/SKIP_IMAGES
Empty file.