{"action":"created","issue":{"url":"https://api.github.com/repos/linuxkit/linuxkit/issues/3096","repository_url":"https://api.github.com/repos/linuxkit/linuxkit","labels_url":"https://api.github.com/repos/linuxkit/linuxkit/issues/3096/labels{/name}","comments_url":"https://api.github.com/repos/linuxkit/linuxkit/issues/3096/comments","events_url":"https://api.github.com/repos/linuxkit/linuxkit/issues/3096/events","html_url":"https://github.com/linuxkit/linuxkit/issues/3096","id":339152980,"node_id":"MDU6SXNzdWUzMzkxNTI5ODA=","number":3096,"title":"Very slow boot on hardware without RDRAND support","user":{"login":"hairyhenderson","id":2037086,"node_id":"MDQ6VXNlcjIwMzcwODY=","avatar_url":"https://avatars3.githubusercontent.com/u/2037086?v=4","gravatar_id":"","url":"https://api.github.com/users/hairyhenderson","html_url":"https://github.com/hairyhenderson","followers_url":"https://api.github.com/users/hairyhenderson/followers","following_url":"https://api.github.com/users/hairyhenderson/following{/other_user}","gists_url":"https://api.github.com/users/hairyhenderson/gists{/gist_id}","starred_url":"https://api.github.com/users/hairyhenderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hairyhenderson/subscriptions","organizations_url":"https://api.github.com/users/hairyhenderson/orgs","repos_url":"https://api.github.com/users/hairyhenderson/repos","events_url":"https://api.github.com/users/hairyhenderson/events{/privacy}","received_events_url":"https://api.github.com/users/hairyhenderson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-07-07T15:13:39Z","updated_at":"2018-07-07T21:54:05Z","closed_at":null,"author_association":"NONE","body":"**Description**\r\n\r\nI'm seeing extremely slow boots on my  [PC-Engines APU2](https://www.pcengines.ch/apu2c4.htm) system. It seems the slowdown is due to `crng init` sometimes taking ~2mins to initialize:\r\n\r\n```console\r\n(ns: getty) linuxkit-000db94b0fb0:~# dmesg | grep random\r\n[    0.000000] random: get_random_bytes called from start_kernel+0x92/0x4c8 with crng_init=0\r\n[   26.615537] random: dhcpcd: uninitialized urandom read (112 bytes read)\r\n[   50.070272] random: fast init done\r\n[  150.070298] random: crng init done\r\n```\r\n\r\nIt seems that the CPU (an AMD GX-412TC) does not support RDRAND, so I'm thinking this may be the cause:\r\n\r\n```console\r\nlinuxkit-000db94b0fb0:~# grep rdrand /proc/cpuinfo\r\nlinuxkit-000db94b0fb0:~# echo $?\r\n1\r\n```\r\n\r\nBasically, I'm wondering if there's a way for me to avoid this on this particular chip. I'm hoping to use this system as a home router, so ~2-3min (re)boot times aren't ideal 😉.\r\n\r\n**Steps to reproduce the issue:**\r\n\r\nI iPXE-booted an APU2C4 system from an initrd/kernel generated based on [`getty.yml`](https://github.com/linuxkit/linuxkit/blob/master/examples/getty.yml) - the only modification is I changed `cmdline` to read `console=ttyS0,115200`.\r\n\r\nWaiting for the shell to be fully available takes a long time - about 25s for the \"fast init\" and an additional 100s for the \"crng init\".\r\n\r\n**Describe the results you received:**\r\n\r\nVery slow boot...\r\n\r\n**Describe the results you expected:**\r\n\r\nFaster boot times 😉\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nThis _may_ be related to #3032, though I'm not sure it's the same issue."},"comment":{"url":"https://api.github.com/repos/linuxkit/linuxkit/issues/comments/403245227","html_url":"https://github.com/linuxkit/linuxkit/issues/3096#issuecomment-403245227","issue_url":"https://api.github.com/repos/linuxkit/linuxkit/issues/3096","id":403245227,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzI0NTIyNw==","user":{"login":"hairyhenderson","id":2037086,"node_id":"MDQ6VXNlcjIwMzcwODY=","avatar_url":"https://avatars3.githubusercontent.com/u/2037086?v=4","gravatar_id":"","url":"https://api.github.com/users/hairyhenderson","html_url":"https://github.com/hairyhenderson","followers_url":"https://api.github.com/users/hairyhenderson/followers","following_url":"https://api.github.com/users/hairyhenderson/following{/other_user}","gists_url":"https://api.github.com/users/hairyhenderson/gists{/gist_id}","starred_url":"https://api.github.com/users/hairyhenderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hairyhenderson/subscriptions","organizations_url":"https://api.github.com/users/hairyhenderson/orgs","repos_url":"https://api.github.com/users/hairyhenderson/repos","events_url":"https://api.github.com/users/hairyhenderson/events{/privacy}","received_events_url":"https://api.github.com/users/hairyhenderson/received_events","type":"User","site_admin":false},"created_at":"2018-07-07T21:54:05Z","updated_at":"2018-07-07T21:54:05Z","author_association":"NONE","body":"ah - ok the `bs=100` change was a non-repeatable fluke apparently 😉"}}
{"actor":{"display_login":"hairyhenderson"}}