summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorVolker Uhrig2008-02-06 15:51:20 +0100
committerVolker Uhrig2008-02-06 15:51:20 +0100
commit09b9e13de8f0682a1bbe220d9222dea741b6ef35 (patch)
tree1891448d6c813c2c2520dc0122ae9701f6a6942b /installer
parent* updated 64-bit busybox to version 1.8.2, too (again with the added (diff)
downloadcore-09b9e13de8f0682a1bbe220d9222dea741b6ef35.tar.gz
core-09b9e13de8f0682a1bbe220d9222dea741b6ef35.tar.xz
core-09b9e13de8f0682a1bbe220d9222dea741b6ef35.zip
Added /dev/urandom in chroot (slxos-setup shell ...)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1517 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rw-r--r--installer/OpenSLX/OSSetup/Distro/Base.pm7
1 files changed, 6 insertions, 1 deletions
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")) {