Delete previous build recipes, obsoleted by Makefile-driven master file
This commit is contained in:
parent
7288c11f0e
commit
71d57afb1c
149
raspi0w.yaml
149
raspi0w.yaml
|
@ -1,149 +0,0 @@
|
||||||
# See https://wiki.debian.org/RaspberryPi3 for known issues and more details.
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- mkimg: "{{ output }}"
|
|
||||||
size: 1500M
|
|
||||||
|
|
||||||
- mklabel: msdos
|
|
||||||
device: "{{ output }}"
|
|
||||||
|
|
||||||
- mkpart: primary
|
|
||||||
fs-type: 'fat32'
|
|
||||||
device: "{{ output }}"
|
|
||||||
start: 0%
|
|
||||||
end: 20%
|
|
||||||
tag: /boot
|
|
||||||
|
|
||||||
- mkpart: primary
|
|
||||||
device: "{{ output }}"
|
|
||||||
start: 20%
|
|
||||||
end: 100%
|
|
||||||
tag: /
|
|
||||||
|
|
||||||
- kpartx: "{{ output }}"
|
|
||||||
|
|
||||||
- mkfs: vfat
|
|
||||||
partition: /boot
|
|
||||||
label: RASPIFIRM
|
|
||||||
|
|
||||||
- mkfs: ext4
|
|
||||||
partition: /
|
|
||||||
label: RASPIROOT
|
|
||||||
|
|
||||||
- mount: /
|
|
||||||
|
|
||||||
- mount: /boot
|
|
||||||
mount-on: /
|
|
||||||
dirname: '/boot/firmware'
|
|
||||||
|
|
||||||
- unpack-rootfs: /
|
|
||||||
|
|
||||||
# We need to use Debian buster (currently testing) instead of Debian stretch
|
|
||||||
# (currently stable) for:
|
|
||||||
#
|
|
||||||
# linux ≥ 4.14
|
|
||||||
# Which includes the sdhost driver for faster SD card access and making the
|
|
||||||
# WiFi chip available, and has the WiFi driver enabled.
|
|
||||||
#
|
|
||||||
# raspi3-firmware ≥ 1.20171201-1
|
|
||||||
# Which includes a recent enough firmware version to correctly pass the MAC
|
|
||||||
# address to the kernel. This is a regression with Linux ≥ 4.12, see
|
|
||||||
# https://github.com/raspberrypi/firmware/issues/846
|
|
||||||
# Also, this package contains a Raspberry Pi 3-specific firmware file
|
|
||||||
# required by the WiFi driver.
|
|
||||||
- qemu-debootstrap: buster
|
|
||||||
mirror: http://deb.debian.org/debian
|
|
||||||
target: /
|
|
||||||
arch: armel
|
|
||||||
components:
|
|
||||||
- main
|
|
||||||
- contrib
|
|
||||||
- non-free
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
# TODO(https://bugs.debian.org/877855): remove this workaround once
|
|
||||||
# debootstrap is fixed
|
|
||||||
- chroot: /
|
|
||||||
shell: |
|
|
||||||
echo 'deb http://deb.debian.org/debian buster main contrib non-free' > /etc/apt/sources.list
|
|
||||||
echo 'deb http://deb.debian.org/debian-security buster/updates main contrib non-free' >> /etc/apt/sources.list
|
|
||||||
echo '# Backports are _not_ enabled by default. ' >> /etc/apt/sources.list
|
|
||||||
echo '# Enable them by uncommenting the following line:' >> /etc/apt/sources.list
|
|
||||||
echo '# deb http://deb.debian.org/debian buster-backports main contrib non-free' >> /etc/apt/sources.list
|
|
||||||
apt-get update
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
- apt: install
|
|
||||||
packages:
|
|
||||||
- ssh
|
|
||||||
- parted
|
|
||||||
- dosfstools
|
|
||||||
# Contains /lib/firmware/brcm/brcmfmac43430-sdio.bin (required for WiFi).
|
|
||||||
- firmware-brcm80211
|
|
||||||
- wireless-tools
|
|
||||||
- wpasupplicant
|
|
||||||
- raspi3-firmware
|
|
||||||
- linux-image-rpi
|
|
||||||
tag: /
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
- cache-rootfs: /
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
- shell: |
|
|
||||||
echo "rpi-z" > "${ROOT?}/etc/hostname"
|
|
||||||
|
|
||||||
# Allow root logins with no password
|
|
||||||
sed -i 's,root:[^:]*:,root::,' "${ROOT?}/etc/shadow"
|
|
||||||
|
|
||||||
install -m 644 -o root -g root fstab "${ROOT?}/etc/fstab"
|
|
||||||
|
|
||||||
install -m 644 -o root -g root eth0 "${ROOT?}/etc/network/interfaces.d/eth0"
|
|
||||||
|
|
||||||
install -m 755 -o root -g root rpi-set-sysconf "${ROOT?}/usr/local/sbin/rpi-set-sysconf"
|
|
||||||
install -m 644 -o root -g root rpi-set-sysconf.service "${ROOT?}/etc/systemd/system"
|
|
||||||
install -m 644 -o root -g root sysconf.txt "${ROOT?}/boot/firmware/sysconf.txt"
|
|
||||||
mkdir -p "${ROOT?}/etc/systemd/system/basic.target.requires/"
|
|
||||||
ln -s /etc/systemd/system/rpi-set-sysconf.service "${ROOT?}/etc/systemd/system/basic.target.requires/rpi-set-sysconf.service"
|
|
||||||
|
|
||||||
install -m 755 -o root -g root rpi-resizerootfs "${ROOT?}/usr/sbin/rpi-resizerootfs"
|
|
||||||
install -m 644 -o root -g root rpi-resizerootfs.service "${ROOT?}/etc/systemd/system"
|
|
||||||
mkdir -p "${ROOT?}/etc/systemd/system/systemd-remount-fs.service.requires/"
|
|
||||||
ln -s /etc/systemd/system/rpi-resizerootfs.service "${ROOT?}/etc/systemd/system/systemd-remount-fs.service.requires/rpi-resizerootfs.service"
|
|
||||||
|
|
||||||
install -m 644 -o root -g root rpi-generate-ssh-host-keys.service "${ROOT?}/etc/systemd/system"
|
|
||||||
mkdir -p "${ROOT?}/etc/systemd/system/multi-user.target.requires/"
|
|
||||||
ln -s /etc/systemd/system/rpi-generate-ssh-host-keys.service "${ROOT?}/etc/systemd/system/multi-user.target.requires/rpi-generate-ssh-host-keys.service"
|
|
||||||
rm -f ${ROOT?}/etc/ssh/ssh_host_*_key*
|
|
||||||
|
|
||||||
cp "${ROOT?}/usr/lib/linux-image-4.19.0.5-rpi/bcm2835-rpi-zero-w.dtb" "${ROOT?}/boot/"
|
|
||||||
root-fs: /
|
|
||||||
|
|
||||||
# Clean up archive cache (likely not useful) and lists (likely outdated) to
|
|
||||||
# reduce image size by several hundred megabytes.
|
|
||||||
- chroot: /
|
|
||||||
shell: |
|
|
||||||
apt-get clean
|
|
||||||
rm -rf /var/lib/apt/lists
|
|
||||||
|
|
||||||
# Modify the kernel commandline we take from the firmware to boot from
|
|
||||||
# the partition labeled raspiroot instead of forcing it to mmcblk0p2
|
|
||||||
#
|
|
||||||
# Enable UART in the boot loader to debug
|
|
||||||
#
|
|
||||||
# Tell start.elf that the kernel is upstream, so the BCM2835 dtb gets loaded
|
|
||||||
# From:
|
|
||||||
# https://www.raspberrypi.org/forums/viewtopic.php?p=1456353&sid=4fb9bf969c9ef5594f38e028b36e39c6#p1456353
|
|
||||||
#
|
|
||||||
- chroot: /
|
|
||||||
shell: |
|
|
||||||
ls -aR /boot
|
|
||||||
sed -i 's/.dev.mmcblk0p2/LABEL=RASPIROOT/' /boot/firmware/cmdline.txt
|
|
||||||
sed -i 's/BOOT_UART=0/BOOT_UART=1/' /boot/firmware/bootcode.bin
|
|
||||||
sed -i '/enable_uart=1/a upstream_kernel=1' /boot/firmware/config.txt
|
|
||||||
|
|
||||||
# TODO(https://github.com/larswirzenius/vmdb2/issues/24): remove once vmdb
|
|
||||||
# clears /etc/resolv.conf on its own.
|
|
||||||
- shell: |
|
|
||||||
rm "${ROOT?}/etc/resolv.conf"
|
|
||||||
root-fs: /
|
|
138
raspi2.yaml
138
raspi2.yaml
|
@ -1,138 +0,0 @@
|
||||||
# See https://wiki.debian.org/RaspberryPi3 for known issues and more details.
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- mkimg: "{{ output }}"
|
|
||||||
size: 1500M
|
|
||||||
|
|
||||||
- mklabel: msdos
|
|
||||||
device: "{{ output }}"
|
|
||||||
|
|
||||||
- mkpart: primary
|
|
||||||
fs-type: 'fat32'
|
|
||||||
device: "{{ output }}"
|
|
||||||
start: 0%
|
|
||||||
end: 20%
|
|
||||||
tag: /boot
|
|
||||||
|
|
||||||
- mkpart: primary
|
|
||||||
device: "{{ output }}"
|
|
||||||
start: 20%
|
|
||||||
end: 100%
|
|
||||||
tag: /
|
|
||||||
|
|
||||||
- kpartx: "{{ output }}"
|
|
||||||
|
|
||||||
- mkfs: vfat
|
|
||||||
partition: /boot
|
|
||||||
label: RASPIFIRM
|
|
||||||
|
|
||||||
- mkfs: ext4
|
|
||||||
partition: /
|
|
||||||
label: RASPIROOT
|
|
||||||
|
|
||||||
- mount: /
|
|
||||||
|
|
||||||
- mount: /boot
|
|
||||||
mount-on: /
|
|
||||||
dirname: '/boot/firmware'
|
|
||||||
|
|
||||||
- unpack-rootfs: /
|
|
||||||
|
|
||||||
# We need to use Debian buster (currently testing) instead of Debian stretch
|
|
||||||
# (currently stable) for:
|
|
||||||
#
|
|
||||||
# linux ≥ 4.14
|
|
||||||
# Which includes the sdhost driver for faster SD card access and making the
|
|
||||||
# WiFi chip available, and has the WiFi driver enabled.
|
|
||||||
#
|
|
||||||
# raspi3-firmware ≥ 1.20171201-1
|
|
||||||
# Which includes a recent enough firmware version to correctly pass the MAC
|
|
||||||
# address to the kernel. This is a regression with Linux ≥ 4.12, see
|
|
||||||
# https://github.com/raspberrypi/firmware/issues/846
|
|
||||||
# Also, this package contains a Raspberry Pi 3-specific firmware file
|
|
||||||
# required by the WiFi driver.
|
|
||||||
- qemu-debootstrap: buster
|
|
||||||
mirror: http://deb.debian.org/debian
|
|
||||||
target: /
|
|
||||||
arch: armhf
|
|
||||||
components:
|
|
||||||
- main
|
|
||||||
- contrib
|
|
||||||
- non-free
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
# TODO(https://bugs.debian.org/877855): remove this workaround once
|
|
||||||
# debootstrap is fixed
|
|
||||||
- chroot: /
|
|
||||||
shell: |
|
|
||||||
echo 'deb http://deb.debian.org/debian buster main contrib non-free' > /etc/apt/sources.list
|
|
||||||
echo 'deb http://deb.debian.org/debian-security buster/updates main contrib non-free' >> /etc/apt/sources.list
|
|
||||||
echo '# Backports are _not_ enabled by default. ' >> /etc/apt/sources.list
|
|
||||||
echo '# Enable them by uncommenting the following line:' >> /etc/apt/sources.list
|
|
||||||
echo '#deb http://deb.debian.org/debian buster-backports main contrib non-free' >> /etc/apt/sources.list
|
|
||||||
apt-get update
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
- apt: install
|
|
||||||
packages:
|
|
||||||
- ssh
|
|
||||||
- parted
|
|
||||||
- dosfstools
|
|
||||||
- wireless-tools
|
|
||||||
- wpasupplicant
|
|
||||||
- raspi3-firmware
|
|
||||||
- linux-image-armmp
|
|
||||||
tag: /
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
- cache-rootfs: /
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
- shell: |
|
|
||||||
echo "rpi2" > "${ROOT?}/etc/hostname"
|
|
||||||
|
|
||||||
# Allow root logins with no password
|
|
||||||
sed -i 's,root:[^:]*:,root::' "${ROOT?}/etc/shadow"
|
|
||||||
|
|
||||||
install -m 644 -o root -g root fstab "${ROOT?}/etc/fstab"
|
|
||||||
|
|
||||||
install -m 644 -o root -g root eth0 "${ROOT?}/etc/network/interfaces.d/eth0"
|
|
||||||
|
|
||||||
install -m 755 -o root -g root rpi-set-sysconf "${ROOT?}/usr/local/sbin/rpi-set-sysconf"
|
|
||||||
install -m 644 -o root -g root rpi-set-sysconf.service "${ROOT?}/etc/systemd/system"
|
|
||||||
install -m 644 -o root -g root sysconf.txt "${ROOT?}/boot/firmware/sysconf.txt"
|
|
||||||
mkdir -p "${ROOT?}/etc/systemd/system/basic.target.requires/"
|
|
||||||
ln -s /etc/systemd/system/rpi-set-sysconf.service "${ROOT?}/etc/systemd/system/basic.target.requires/rpi-set-sysconf.service"
|
|
||||||
|
|
||||||
install -m 755 -o root -g root rpi-resizerootfs "${ROOT?}/usr/sbin/rpi-resizerootfs"
|
|
||||||
install -m 644 -o root -g root rpi-resizerootfs.service "${ROOT?}/etc/systemd/system"
|
|
||||||
mkdir -p "${ROOT?}/etc/systemd/system/systemd-remount-fs.service.requires/"
|
|
||||||
ln -s /etc/systemd/system/rpi-resizerootfs.service "${ROOT?}/etc/systemd/system/systemd-remount-fs.service.requires/rpi-resizerootfs.service"
|
|
||||||
|
|
||||||
install -m 644 -o root -g root rpi-generate-ssh-host-keys.service "${ROOT?}/etc/systemd/system"
|
|
||||||
mkdir -p "${ROOT?}/etc/systemd/system/multi-user.target.requires/"
|
|
||||||
ln -s /etc/systemd/system/rpi-generate-ssh-host-keys.service "${ROOT?}/etc/systemd/system/multi-user.target.requires/rpi-generate-ssh-host-keys.service"
|
|
||||||
rm -f ${ROOT?}/etc/ssh/ssh_host_*_key*
|
|
||||||
|
|
||||||
wget https://github.com/raspberrypi/firmware/blob/master/boot/bcm2709-rpi-2-b.dtb -O "${ROOT?}/boot/bcm2708-rpi-2-b.dtb"
|
|
||||||
root-fs: /
|
|
||||||
|
|
||||||
# Clean up archive cache (likely not useful) and lists (likely outdated) to
|
|
||||||
# reduce image size by several hundred megabytes.
|
|
||||||
- chroot: /
|
|
||||||
shell: |
|
|
||||||
apt-get clean
|
|
||||||
rm -rf /var/lib/apt/lists
|
|
||||||
|
|
||||||
# Modify the kernel commandline we take from the firmware to boot from
|
|
||||||
# the partition labeled raspiroot instead of forcing it to mmcblk0p2
|
|
||||||
- chroot: /
|
|
||||||
shell: |
|
|
||||||
ls -aR /boot
|
|
||||||
sed -i 's/.dev.mmcblk0p2/LABEL=RASPIROOT/' /boot/firmware/cmdline.txt
|
|
||||||
|
|
||||||
# TODO(https://github.com/larswirzenius/vmdb2/issues/24): remove once vmdb
|
|
||||||
# clears /etc/resolv.conf on its own.
|
|
||||||
- shell: |
|
|
||||||
rm "${ROOT?}/etc/resolv.conf"
|
|
||||||
root-fs: /
|
|
138
raspi3.yaml
138
raspi3.yaml
|
@ -1,138 +0,0 @@
|
||||||
# See https://wiki.debian.org/RaspberryPi3 for known issues and more details.
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- mkimg: "{{ output }}"
|
|
||||||
size: 1500M
|
|
||||||
|
|
||||||
- mklabel: msdos
|
|
||||||
device: "{{ output }}"
|
|
||||||
|
|
||||||
- mkpart: primary
|
|
||||||
fs-type: 'fat32'
|
|
||||||
device: "{{ output }}"
|
|
||||||
start: 0%
|
|
||||||
end: 20%
|
|
||||||
tag: /boot
|
|
||||||
|
|
||||||
- mkpart: primary
|
|
||||||
device: "{{ output }}"
|
|
||||||
start: 20%
|
|
||||||
end: 100%
|
|
||||||
tag: /
|
|
||||||
|
|
||||||
- kpartx: "{{ output }}"
|
|
||||||
|
|
||||||
- mkfs: vfat
|
|
||||||
partition: /boot
|
|
||||||
label: RASPIFIRM
|
|
||||||
|
|
||||||
- mkfs: ext4
|
|
||||||
partition: /
|
|
||||||
label: RASPIROOT
|
|
||||||
|
|
||||||
- mount: /
|
|
||||||
|
|
||||||
- mount: /boot
|
|
||||||
mount-on: /
|
|
||||||
dirname: '/boot/firmware'
|
|
||||||
|
|
||||||
- unpack-rootfs: /
|
|
||||||
|
|
||||||
# We need to use Debian buster (currently testing) instead of Debian stretch
|
|
||||||
# (currently stable) for:
|
|
||||||
#
|
|
||||||
# linux ≥ 4.14
|
|
||||||
# Which includes the sdhost driver for faster SD card access and making the
|
|
||||||
# WiFi chip available, and has the WiFi driver enabled.
|
|
||||||
#
|
|
||||||
# raspi3-firmware ≥ 1.20171201-1
|
|
||||||
# Which includes a recent enough firmware version to correctly pass the MAC
|
|
||||||
# address to the kernel. This is a regression with Linux ≥ 4.12, see
|
|
||||||
# https://github.com/raspberrypi/firmware/issues/846
|
|
||||||
# Also, this package contains a Raspberry Pi 3-specific firmware file
|
|
||||||
# required by the WiFi driver.
|
|
||||||
- qemu-debootstrap: buster
|
|
||||||
mirror: http://deb.debian.org/debian
|
|
||||||
target: /
|
|
||||||
arch: arm64
|
|
||||||
components:
|
|
||||||
- main
|
|
||||||
- contrib
|
|
||||||
- non-free
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
# TODO(https://bugs.debian.org/877855): remove this workaround once
|
|
||||||
# debootstrap is fixed
|
|
||||||
- chroot: /
|
|
||||||
shell: |
|
|
||||||
echo 'deb http://deb.debian.org/debian buster main contrib non-free' > /etc/apt/sources.list
|
|
||||||
echo 'deb http://deb.debian.org/debian-security buster/updates main contrib non-free' >> /etc/apt/sources.list
|
|
||||||
echo '# Backports are _not_ enabled by default. ' >> /etc/apt/sources.list
|
|
||||||
echo '# Enable them by uncommenting the following line:' >> /etc/apt/sources.list
|
|
||||||
echo '# deb http://deb.debian.org/debian buster-backports main contrib non-free' >> /etc/apt/sources.list
|
|
||||||
apt-get update
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
- apt: install
|
|
||||||
packages:
|
|
||||||
- ssh
|
|
||||||
- parted
|
|
||||||
- dosfstools
|
|
||||||
# Contains /lib/firmware/brcm/brcmfmac43430-sdio.bin (required for WiFi).
|
|
||||||
- firmware-brcm80211
|
|
||||||
- wireless-tools
|
|
||||||
- wpasupplicant
|
|
||||||
- raspi3-firmware
|
|
||||||
- linux-image-arm64
|
|
||||||
tag: /
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
- cache-rootfs: /
|
|
||||||
unless: rootfs_unpacked
|
|
||||||
|
|
||||||
- shell: |
|
|
||||||
echo "rpi3" > "${ROOT?}/etc/hostname"
|
|
||||||
|
|
||||||
# Allow root logins with no password
|
|
||||||
sed -i 's,root:[^:]*:,root::,' "${ROOT?}/etc/shadow"
|
|
||||||
|
|
||||||
install -m 644 -o root -g root fstab "${ROOT?}/etc/fstab"
|
|
||||||
|
|
||||||
install -m 644 -o root -g root eth0 "${ROOT?}/etc/network/interfaces.d/eth0"
|
|
||||||
|
|
||||||
install -m 755 -o root -g root rpi-set-sysconf "${ROOT?}/usr/local/sbin/rpi-set-sysconf"
|
|
||||||
install -m 644 -o root -g root rpi-set-sysconf.service "${ROOT?}/etc/systemd/system"
|
|
||||||
install -m 644 -o root -g root sysconf.txt "${ROOT?}/boot/firmware/sysconf.txt"
|
|
||||||
mkdir -p "${ROOT?}/etc/systemd/system/basic.target.requires/"
|
|
||||||
ln -s /etc/systemd/system/rpi-set-sysconf.service "${ROOT?}/etc/systemd/system/basic.target.requires/rpi-set-sysconf.service"
|
|
||||||
|
|
||||||
install -m 755 -o root -g root rpi-resizerootfs "${ROOT?}/usr/sbin/rpi-resizerootfs"
|
|
||||||
install -m 644 -o root -g root rpi-resizerootfs.service "${ROOT?}/etc/systemd/system"
|
|
||||||
mkdir -p "${ROOT?}/etc/systemd/system/systemd-remount-fs.service.requires/"
|
|
||||||
ln -s /etc/systemd/system/rpi-resizerootfs.service "${ROOT?}/etc/systemd/system/systemd-remount-fs.service.requires/rpi-resizerootfs.service"
|
|
||||||
|
|
||||||
install -m 644 -o root -g root rpi-generate-ssh-host-keys.service "${ROOT?}/etc/systemd/system"
|
|
||||||
mkdir -p "${ROOT?}/etc/systemd/system/multi-user.target.requires/"
|
|
||||||
ln -s /etc/systemd/system/rpi-generate-ssh-host-keys.service "${ROOT?}/etc/systemd/system/multi-user.target.requires/rpi-generate-ssh-host-keys.service"
|
|
||||||
rm -f ${ROOT?}/etc/ssh/ssh_host_*_key*
|
|
||||||
root-fs: /
|
|
||||||
|
|
||||||
# Clean up archive cache (likely not useful) and lists (likely outdated) to
|
|
||||||
# reduce image size by several hundred megabytes.
|
|
||||||
- chroot: /
|
|
||||||
shell: |
|
|
||||||
apt-get clean
|
|
||||||
rm -rf /var/lib/apt/lists
|
|
||||||
|
|
||||||
# Modify the kernel commandline we take from the firmware to boot from
|
|
||||||
# the partition labeled raspiroot instead of forcing it to mmcblk0p2
|
|
||||||
- chroot: /
|
|
||||||
shell: |
|
|
||||||
ls -aR /boot
|
|
||||||
sed -i 's/.dev.mmcblk0p2/LABEL=RASPIROOT/' /boot/firmware/cmdline.txt
|
|
||||||
|
|
||||||
# TODO(https://github.com/larswirzenius/vmdb2/issues/24): remove once vmdb
|
|
||||||
# clears /etc/resolv.conf on its own.
|
|
||||||
- shell: |
|
|
||||||
rm "${ROOT?}/etc/resolv.conf"
|
|
||||||
root-fs: /
|
|
Loading…
Reference in New Issue