From b593eb1385876cd477aad659d0c95c8cb7d1c509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Molinero=20Fern=C3=A1ndez?= Date: Sun, 16 Jan 2022 01:33:19 +0100 Subject: [PATCH] The creation of the RANDFILE file is not really necessary --- scripts/bin/container-init | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scripts/bin/container-init b/scripts/bin/container-init index f816f66..c7d86d0 100755 --- a/scripts/bin/container-init +++ b/scripts/bin/container-init @@ -76,12 +76,6 @@ if [ -z "${VGL_DISPLAY-}" ]; then fi fi -# Create RANDFILE if it does not exist -RANDFILE=${RANDFILE-${HOME:?}/.rnd} -if [ ! -f "${RANDFILE:?}" ] && [ -c /dev/urandom ]; then - dd if=/dev/urandom of="${RANDFILE:?}" bs=256 count=1 >/dev/null 2>&1 -fi - # Generate SSH keys if they do not exist if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' >/dev/null