Skip to content

Commit

Permalink
Add verity-sig etc
Browse files Browse the repository at this point in the history
  • Loading branch information
valtzu committed Apr 25, 2024
1 parent 1bf1a33 commit 6e98dea
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 5 deletions.
8 changes: 7 additions & 1 deletion curl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ expand-output="{{fw_dir}}/overlays/disable-bt.dtbo"
url="https://github.com/pftf/RPi4/releases/download/v1.37/RPi4_UEFI_Firmware_v1.37.zip"
expand-output="{{dl_dir}}/rpi_uefi.zip"

url="https://raw.githubusercontent.com/raspberrypi/rpi-eeprom/e120a595d49707640c48d5351985315f704dd3f8/rpi-eeprom-digest"
url="https://raw.githubusercontent.com/raspberrypi/rpi-eeprom/v2024.04.20-2712/rpi-eeprom-digest"
expand-output="{{dl_dir}}/rpi-eeprom-digest"

url="https://raw.githubusercontent.com/raspberrypi/rpi-eeprom/v2024.04.20-2712/rpi-eeprom-config"
expand-output="{{dl_dir}}/rpi-eeprom-config"

url="https://raw.githubusercontent.com/raspberrypi/rpi-eeprom/v2024.04.20-2712/firmware-2711/default/pieeprom-2024-04-15.bin"
expand-output="{{dl_dir}}/pieeprom-2024-04-15.bin"
2 changes: 0 additions & 2 deletions docs/plan.md

This file was deleted.

8 changes: 8 additions & 0 deletions docs/plan.plantuml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ rectangle usr_verity {
}

rectangle esp {
file config.txt as esp/config.txt {
}
artifact boot.img {
file "bcm2711-rpi-4-b.dtb"
file "overlays/"
file fixup4.dat
file start4.elf
file config.txt
Expand All @@ -29,6 +33,10 @@ rectangle esp {
artifact cmdline
artifact vmlinux
}

artifact "EFI/BOOT/BOOTAA64.efi" as systemd {
artifact "systemd-boot"
}
}

sign_key_private.pem -.> sign_key_public.pem
Expand Down
1 change: 1 addition & 0 deletions mkosi.extra/usr/lib/repart.d/00-esp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Label=boot
Type=esp
SizeMinBytes=512M
SizeMaxBytes=512M
CopyBlocks=auto
1 change: 0 additions & 1 deletion mkosi.extra/usr/lib/repart.d/10-usr-a.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ Label=_empty
Type=usr
SizeMinBytes=2G
SizeMaxBytes=2G
ReadOnly=on
5 changes: 5 additions & 0 deletions mkosi.extra/usr/lib/repart.d/12-usr-a-verity-sig.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Partition]
Label=_empty
Type=usr-verity-sig
SizeMinBytes=16K
SizeMaxBytes=16K
1 change: 1 addition & 0 deletions mkosi.extra/usr/lib/repart.d/22-usr-b-verity-sig.conf
16 changes: 16 additions & 0 deletions mkosi.extra/usr/lib/sysupdate.d/30-usr-verity-sig.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Transfer]
ProtectVersion=%A
Verify=no

[Source]
Type=url-file
Path=https://github.com/valtzu/rpi-mkosi/releases/latest/download
MatchPattern=%M_@v_@u.usr-verity-sig.raw.xz

[Target]
Type=partition
Path=auto
MatchPattern=%M_@v_verity_sig
MatchPartitionType=usr-verity-sig
PartitionFlags=0
ReadOnly=1
1 change: 0 additions & 1 deletion mkosi.repart/10-usr-a.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Type=usr
SizeMinBytes=2G
SizeMaxBytes=2G
ReadOnly=on
Label=%M_%A
Format=ext4
CopyFiles=/usr:/
Expand Down
6 changes: 6 additions & 0 deletions mkosi.repart/12-usr-a-verity-sig.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Partition]
Label=%M_%A_verity_sig
Type=usr-verity-sig
Verity=signature
VerityMatchKey=usr
SplitName=%U.usr-verity-sig

0 comments on commit 6e98dea

Please sign in to comment.