Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/tdewey/packages #7

Merged
merged 5 commits into from
Oct 3, 2024
Merged

Dev/tdewey/packages #7

merged 5 commits into from
Oct 3, 2024

Conversation

tdewey-rpi
Copy link
Contributor

Refactor and update the packages

1) Remove rpi-otp-key, not required
2) Remove extraneous --key-file directive, harmful
3) Remove kernel module explicit loading, not required
4) Compress with zstd
5) Move binaries to /usr/bin
1) Move scripts to /usr/bin
1) Move script to /usr/bin
2) Add depends on the fastboot package
@tdewey-rpi tdewey-rpi requested a review from roliver-rpi October 3, 2024 12:49
@tdewey-rpi tdewey-rpi merged commit 46018ed into main Oct 3, 2024
PRIVATE_KEY=$(/usr/local/bin/rpi-otp-private-key -b | base64 -w0)
printf '%s' "${PRIVATE_KEY}" > /data/fastboot.key
printf '%s' "${PRIVATE_KEY}\r\n" >> /data/private.key
/usr/bin/cryptkey-fetch | /sbin/cryptsetup luksOpen /dev/mmcblk0p2 cryptroot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure cryptkey-fetch has ever been used for the LUKS passphrase (look at generate_fastboot_cfg in the fastboot package)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it produce the correct output, though?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dug further - generate_fastboot_cfg creates, but cryptkey-fetch only reads.

- src: vcgencmd
dst: /bin/vcgencmd
dst: /usr/bin/vcgencmd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vcgencmd/vcmailbox can go if you list 'raspi-utils-core' under 'depends' (it's now available on the publicly).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not interested in another dependency at this time - neither of these tools changes frequently

@tdewey-rpi tdewey-rpi deleted the dev/tdewey/packages branch October 3, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants