Skip to content

Commit

Permalink
BerryLan Mods
Browse files Browse the repository at this point in the history
* replace dhcpcd with network-manager
* seed in the nymea repository and nymea-networkmanager
* patch nymea-networkmanager startup comand to use "Raspberry Pi" instead of nymea
* enables ssh by default
* configures build to skip all but lite image
  • Loading branch information
mzanetti committed Jul 10, 2022
1 parent 5d044ba commit 9e80d7b
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 4 deletions.
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.

0 comments on commit 9e80d7b

Please sign in to comment.