From 09b9e13de8f0682a1bbe220d9222dea741b6ef35 Mon Sep 17 00:00:00 2001 From: Volker Uhrig Date: Wed, 6 Feb 2008 14:51:20 +0000 Subject: Added /dev/urandom in chroot (slxos-setup shell ...) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1517 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSSetup/Distro/Base.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/OpenSLX/OSSetup/Distro/Base.pm b/installer/OpenSLX/OSSetup/Distro/Base.pm index 23f1e038..b05e5cfe 100644 --- a/installer/OpenSLX/OSSetup/Distro/Base.pm +++ b/installer/OpenSLX/OSSetup/Distro/Base.pm @@ -126,7 +126,8 @@ sub startSession "slxos-setup::distro::chroot", sub { $self->finishSession(); } ); - # make sure there's a /dev/zero and /dev/null + # make sure there's a /dev/zero, /dev/null and /dev/urandom + # /dev/urandom for passwd chroot if (!-e "$osDir/dev" && !mkdir("$osDir/dev")) { die _tr("unable to create folder '%s' (%s)\n", "$osDir/dev", $!); } @@ -136,6 +137,10 @@ sub startSession if (!-e "$osDir/dev/null" && slxsystem("mknod $osDir/dev/null c 1 3")) { die _tr("unable to create node '%s' (%s)\n", "$osDir/dev/null", $!); } + if (!-e "$osDir/dev/urandom" && slxsystem("mknod $osDir/dev/urandom c 1 9")) { + die _tr("unable to create node '%s' (%s)\n", "$osDir/dev/urandom", $!); + } + # fake proc, depending on what is needed ... if (!-e "$osDir/proc" && !mkdir("$osDir/proc")) { -- cgit v1.2.3-55-g7522