canonical / core18

The core18 base snap
14 stars 26 forks source link

gpg (dirmngr actually) panics when there's no random/urandom. #130

Closed sil2100 closed 5 years ago

sil2100 commented 5 years ago

Currently core18 FTBFS. Not sure what changed that causes the issue (gnupg2 didn't, so I'd expect something in our ubuntu-base tarballs?), but now the hook which installs extra packages dies when trying to add the ubuntu-image PPA key to the keyring. It actually dies because dirmngr panics and exits because of missing /dev/urandom and /dev/random. The easiest way to fix it is simply creating the two special files exist for the run of the hook.

mvo5 commented 5 years ago

This looks fine, slightly strange that it breaks now and I wonder if it has deeper consequences?

sil2100 commented 5 years ago

Thanks for the review! I did an image test build and it started fine, same for the new changes. As mentioned already on IRC, this is a side-effect of livecd-rootfs 2.525.23 and fix for LP: #1828118. I will double-check with Steve if this is indeed what we want, but so far it seems to have no real side-effects besides those during build. With these changes now I guess we might have all the special files in place in case anything wants to use them.

vorlonofportland commented 5 years ago

I think it's reasonable that the base tarballs are not shipping static nodes under /dev, we should normally expect /dev to be bind mounted into a chroot. The knock-on effect on core18 is unexpected, but I think this solution is fine.