grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* Do grub-mkrescue GPT GUIDs need more entropy than --fs-uuid gets ?
@ 2016-08-11 19:55 Thomas Schmitt
  2016-08-14  5:03 ` Michael Zimmermann
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Schmitt @ 2016-08-11 19:55 UTC (permalink / raw)
  To: grub-devel

Hi,

i am discussing with Chris Lamb on reproducible-builds@lists.alioth.debian.org
how to make production of bootable ISOs reproducible. The last (yet known)
obstacle are the pseudo-random GUIDs of the GPT which is produced for EFI
bootability.

Up to this obstacle it turned out that it will suffice to use the same
input file tree and the same overall timestamp with xorriso -as mkisofs
option
  --modification-date=YYYYMMDDhhmmsscc
which was originally introduced for grub-mkrescue to match in grub.cfg
  search --fs-uuid --set YYYY-MM-DD-hh-mm-ss-cc

I am now wondering whether it would be ok for grub-mkrescue if the GUIDs
of the GPT would be derived reproducibly from this timestamp by default.
(Currently they stem from /dev/urandom.)

These GUIDs will of course be unique inside the GPT. But their entropy
will be low and collisions with other ISOs could happen systematically
because of nearly identical production times.
Well, this can happen to the ISO 9660 --fs-uuid string under the same
circumstances.


So my question:
Is there any reason known why the GPT GUID needs to have better randomness
than the "search --fs-uuid" string ?


Have a nice day :)

Thomas



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-14  8:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-11 19:55 Do grub-mkrescue GPT GUIDs need more entropy than --fs-uuid gets ? Thomas Schmitt
2016-08-14  5:03 ` Michael Zimmermann
2016-08-14  6:29   ` Andrei Borzenkov
2016-08-14  8:44     ` Thomas Schmitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).