Skip to content

Commit

Permalink
BerryLan Mods
Browse files Browse the repository at this point in the history
* replace dhcpcd5 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 Jan 26, 2022
1 parent a8596e0 commit c7c2219
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 2 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 Raspbian 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-buster
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 buster rpi\n#deb-src http://repository.nymea.io buster rpi" | tee /etc/apt/sources.list.d/nymea.list
wget -qO - http://repository.nymea.io/repository-pubkey.gpg | 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 dhcpcd5
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


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 c7c2219

Please sign in to comment.