-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
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
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 |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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
Refactor and update the packages