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

Add support for gpg2.1, ubuntu 18.04 #1

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

donbowman
Copy link

a few minor changes were needed, gpg -k doesn't list the keyids, support for nvme disks, add sha256/sha512 modules to grub

donbowman and others added 15 commits February 21, 2018 17:55
might need to start agent as
   # gpg-agent --daemon --pinentry-program /usr/bin/pinentry-curses
after GNUPGHOME env var is set
(e.g. don't check for custom kernels)
Add a cache directory.
if the grub.cfg and publickey are the same, do not rebuild and resign
grub.
We now log to syslog all operations.

In addition to the --sign-all force-override, we now check, for each
file, if:

a) .sig is present
b) .sig is reasonable size
c) .sig is verifiable via gpg

if not, force resign
it appears update-initramfs can be called w/ /boot/vmlinu...sig
which causes a .sig.sig to appear. Remove if present
In a helper function we turned off exiting on error, then enabled it
after calling an external utility. This had the behavior of forcing
later calls in the script to immediately exit whenever a non-zero error
code was returned by anything. Unfortunatly, we were testing the result
of a helper function (`CheckSig`) by testing `$?`. If it was non-zero,
we'd immediately exit the program, leading to a failure to actually
generate signatures, and a failure to finish installation.

Change the code to set the flags in the correct order.
fix: swap -e and +e in helper function
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