Base: Symlink /dev/urandom to /dev/random

Some software expects to find /dev/urandom so we might as well provide.
Gets rid of one dropbear patch. :^)
This commit is contained in:
Andreas Kling 2020-06-08 21:42:33 +02:00
parent 3ee1b3cbd4
commit 5448a670c0
Notes: sideshowbarker 2024-07-19 05:44:30 +09:00
2 changed files with 1 additions and 11 deletions

View file

@ -85,6 +85,7 @@ mknod mnt/dev/zero c 1 5
mknod mnt/dev/full c 1 7
# random, is failing (randomly) on fuse-ext2 on macos :)
chmod 666 mnt/dev/random || true
ln -s random mnt/dev/urandom
chmod 666 mnt/dev/null
chmod 666 mnt/dev/zero
chmod 666 mnt/dev/full

View file

@ -1,11 +0,0 @@
--- a/sysoptions.h
+++ b/sysoptions.h
@@ -256,7 +256,7 @@
/* Source for randomness. This must be able to provide hundreds of bytes per SSH
* connection without blocking. */
#ifndef DROPBEAR_URANDOM_DEV
-#define DROPBEAR_URANDOM_DEV "/dev/urandom"
+#define DROPBEAR_URANDOM_DEV "/dev/random"
#endif
/* client keyboard interactive authentication is often used for password auth.