sbuild-update --keygen unnecessarily requires high quality entropy

Bug #1454729 reported by Robie Basak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sbuild (Ubuntu)
New
Undecided
Unassigned

Bug Description

For a fresh user or throwaway VM:

sbuild-update --keygen
hostname: Name or service not known
Generating archive key.
gpg: keyblock resource `/home/ubuntu/.gnupg/secring.gpg': file open error
gpg: keyblock resource `/home/ubuntu/.gnupg/pubring.gpg': file open error

Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 274 more bytes)

It's fine for a one-off on my own machine, but as I do things on throwaway VMs more often, this gets more irritating. I keep forgetting to apply my workaround, cancelling on this prompt and going round again. Or copying a pre-generated key over. I don't expect this to be necessary since sbuild is by definition sandbox. I'm not sure why this workaround is needed but would sources.list's [trusted=yes] work here? In any case this internal implementation detail of sbuild shouldn't need to be exposed to the user.

Workaround: replace /dev/random with a symlink to /dev/urandom instead (which is fine and safe on a throwaway VM where I won't be doing anything important).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.