Skip to content

Commit

Permalink
Add example configurations for Raspberry Pis
Browse files Browse the repository at this point in the history
Add example configurations for Debian 11 (bullseye) on a Raspberry Pi 3
and Raspberry Pi Zero W. These configurations contain a minimal Debian
systems without a desktop. It can be used as basis to build bigger
images.

Signed-off-by: Benjamin Drung <[email protected]>
  • Loading branch information
bdrung committed Nov 8, 2021
1 parent 28945d5 commit 610441d
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/Debian-bullseye-RaspberryPi3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# Combine this configuration with Debian-bullseye.yaml for a working golden image.
mmdebstrap:
architectures:
- arm64
components:
- contrib
- non-free
customize-hooks:
# Network: Use DHCP on the Ethernet interface
- printf "\nauto lo\niface lo inet loopback\n\nallow-hotplug eth0\niface eth0 inet dhcp\n"
>> "$1/etc/network/interfaces"
packages:
# Raspberry Pi 3 specific
- firmware-brcm80211 # contains /lib/firmware/brcm/brcmfmac43430-sdio.bin (required for WiFi)
- linux-image-arm64
- raspi-firmware
13 changes: 13 additions & 0 deletions examples/Debian-bullseye-RaspberryPiZeroW.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
# Combine this configuration with Debian-bullseye.yaml for a working golden image.
mmdebstrap:
architectures:
- armel
components:
- contrib
- non-free
packages:
# Raspberry Pi Zero W specific
- firmware-brcm80211 # contains /lib/firmware/brcm/brcmfmac43430-sdio.bin (required for WiFi)
- linux-image-rpi
- raspi-firmware
66 changes: 66 additions & 0 deletions examples/Debian-bullseye.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
mmdebstrap:
cleanup-hooks:
- cp /dev/null "$1/etc/hostname"
- if test -f "$1/etc/resolv.conf"; then cp /dev/null "$1/etc/resolv.conf"; fi
components:
- main
customize-hooks:
# Update APT cache to update command-not-found database
- chroot "$1" apt-get update
keyrings:
- /usr/share/keyrings/debian-archive-keyring.gpg
mode: unshare
packages:
# install packages from priority important (aptitude search '~pimportant' -F'%p')
- adduser
- debian-archive-keyring
- fdisk
- gpgv
- ifupdown
- init
- iproute2
- iputils-ping
- isc-dhcp-client
- kmod
- less
- logrotate
- nano
- netbase
- procps
- rsyslog
- sensible-utils
- udev
- whiptail
# install packages from priority standard (aptitude search '~pstandard' -F'%p')
- bash-completion
- bind9-dnsutils
- bind9-host
- dbus
- file
- libpam-systemd # recommended by systemd and needed to not run into https://bugs.debian.org/751636
- locales
- lsof
- man-db
- manpages
- openssh-client
- pciutils
- traceroute
- wget
- xz-utils
# basic stuff
- command-not-found
- console-data
- htop
- kbd # for loadkeys
- openssh-server
- psmisc # for fuser, killall, etc.
- rsync
- sudo
- usbutils # for lsusb
- vim
- wireless-tools
- wpasupplicant
suite: bullseye
target: root.tar.xz
variant: minbase

0 comments on commit 610441d

Please sign in to comment.