-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Roll-up of #22 changes Co-authored-by: Ben Benson <[email protected]>
- Loading branch information
Showing
33 changed files
with
225 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Automated provisioning of secure boot for Raspberry Pi Devices |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
|
||
cd /usr/share/rpi-sb-provisioner/config/ | ||
python3 config.py | ||
cd /usr/share/rpi-sb-provisioner/config | ||
/usr/share/rpi-sb-provisioner/bin/python3 config.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
rpi-sb-provisioner.*.debhelper | ||
rpi-sb-provisioner.substvars | ||
rpi-sb-provisioner/ | ||
rpi-sb-provisioner-*/ | ||
files | ||
debhelper-build-stamp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rpi-sb-provisioner (1.0.2) UNRELEASED; urgency=low | ||
|
||
* rpi-sb-provisioner: Changed Debian Packaging | ||
|
||
-- Ben Benson <[email protected]> Fri, 23 Aug 2024 11:24:00 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Source: rpi-sb-provisioner | ||
Section: default | ||
Priority: extra | ||
Maintainer: Tom Dewey <[email protected]> | ||
Build-Depends: debhelper (>= 9), python3, dh-virtualenv (>= 0.8) | ||
Standards-Version: 1.0.2 | ||
homepage: https://www.raspberrypi.com/software | ||
|
||
Package: rpi-sb-provisioner | ||
Architecture: arm64 | ||
Pre-Depends: dpkg (>= 1.16.1), python3, ${misc:Pre-Depends} | ||
Depends: ${misc:Depends}, fastboot (>= 33.0.3), python3, python3-pycryptodome, openssl, cpio, sed, android-sdk-platform-tools, awk, xxd, rpi-eeprom, rpiboot, coreutils, curl, bash, gzip, dctrl-tools, diffutils, findutils, libengine-pkcs11-openssl, libp11-kit-dev, gnutls-bin | ||
Description: Automated provisioning of secure boot for Raspberry Pi Devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Copyright (c) 2020, Ben Benson <[email protected]> | ||
|
||
Some rights reserved. | ||
|
||
**TODO** Copy main project's license file here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
config/config.sh /usr/local/bin/ | ||
config/config.py /usr/share/rpi-sb-provisioner/config | ||
config/validator.py /usr/share/rpi-sb-provisioner/config | ||
config/config_app.css /usr/share/rpi-sb-provisioner/config | ||
config/config_app.helper /usr/share/rpi-sb-provisioner/config | ||
|
||
monitor/monitor.sh /usr/local/bin | ||
monitor/monitor.py /usr/share/rpi-sb-provisioner/monitor | ||
monitor/systemctl_python.py /usr/share/rpi-sb-provisioner/monitor/ | ||
monitor/monitor.css /usr/share/rpi-sb-provisioner/monitor/ | ||
|
||
rpi-package-download/rpi-package-download /usr/local/bin/ | ||
rpi-package-download/[email protected] /usr/local/lib/systemd/system/ | ||
|
||
key-writer/keywriter.sh /usr/local/bin | ||
key-writer/[email protected] /usr/local/lib/systemd/system/ | ||
|
||
host-support/terminal-functions.sh /usr/local/bin | ||
host-support/cryptroot_initramfs /var/lib/rpi-sb-provisioner | ||
host-support/boot_ramdisk_config.txt /var/lib/rpi-sb-provisioner | ||
host-support/fastboot-gadget.img /var/lib/rpi-sb-provisioner | ||
host-support/make-boot-image /usr/local/bin | ||
host-support/rpi-sb-provisioner /etc/default/ | ||
host-support/bootloader.config /var/lib/rpi-sb-provisioner/ | ||
|
||
device-provisioner/provisioner.sh /usr/local/bin | ||
device-provisioner/[email protected] /usr/local/lib/systemd/system | ||
device-triage/triage.sh /usr/local/bin | ||
device-triage/[email protected] /usr/local/lib/systemd/system | ||
|
||
fetch-repo-package-list/fetch-repo-package-list /usr/local/bin/ | ||
fetch-repo-package-list/[email protected] /usr/local/lib/systemd/system/ | ||
fetch-repo-package-list/[email protected] /usr/local/lib/systemd/system/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
if [ ! $(getent group rpi-sb-provisioner) ]; then | ||
groupadd rpi-sb-provisioner | ||
else | ||
echo "Group rpi-sb-provisioner already exists" | ||
fi | ||
|
||
if id -nGz "pi" | grep -qzxF "rpi-sb-provisioner" | ||
then | ||
echo User \`pi\' already belongs to group \`rpi-sb-provisioner\' | ||
else | ||
usermod --append --groups rpi-sb-provisioner pi | ||
fi | ||
|
||
if id -nGz "root" | grep -qzxF "rpi-sb-provisioner" | ||
then | ||
echo User \`root\' already belongs to group \`rpi-sb-provisioner\' | ||
else | ||
usermod --append --groups rpi-sb-provisioner root | ||
fi | ||
|
||
if [ -d "/etc/rpi-sb-provisioner/" ]; then | ||
echo "/etc/rpi-sb-provisioner/ already exists" | ||
else | ||
mkdir -p /etc/rpi-sb-provisioner/ | ||
fi | ||
|
||
if ! [ -f /etc/rpi-sb-provisioner/config ]; then | ||
touch /etc/rpi-sb-provisioner/config | ||
else | ||
echo "Config file already exists" | ||
fi | ||
|
||
chown :rpi-sb-provisioner /etc/rpi-sb-provisioner/config | ||
chmod g+w /etc/rpi-sb-provisioner/config |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/make -f | ||
|
||
export DH_VERBOSE = 1 | ||
export DH_VIRTUALENV_INSTALL_ROOT=/usr/share/ | ||
|
||
%: | ||
dh $@ --with python-virtualenv --with systemd | ||
|
||
override_dh_usrlocal: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (native) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tar-ignore | ||
tar-ignore = .coverage | ||
tar-ignore = .tox | ||
tar-ignore = .venv | ||
tar-ignore = bin | ||
tar-ignore = docs/_build | ||
tar-ignore = *.log | ||
tar-ignore = *.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ACTION=="add", SUBSYSTEM=="usb", \ | ||
ATTRS{idVendor}=="0a5c", ATTR{idProduct}=="27[16][1234]", \ | ||
TAG+="systemd", \ | ||
PROGRAM="/usr/bin/systemd-escape -p [email protected] $env{DEVNAME}", \ | ||
ENV{SYSTEMD_WANTS}+="%c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
|
||
cd /usr/share/rpi-sb-provisioner/monitor/ | ||
python3 monitor.py | ||
/usr/share/rpi-sb-provisioner/bin/python3 monitor.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.