summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/Distro/Base.pm
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-08-13 16:34:04 +0200
committerDirk von Suchodoletz2009-08-13 16:34:04 +0200
commit2a22448e45cc88c0515f82708b44f31d87b449b5 (patch)
treef7271046ff7b025250a0ea61b8127d8c479f0e22 /installer/OpenSLX/OSSetup/Distro/Base.pm
parentAdditions for the upcoming Ubuntu 9.10 release (mainly untested yet) ... (diff)
downloadcore-2a22448e45cc88c0515f82708b44f31d87b449b5.tar.gz
core-2a22448e45cc88c0515f82708b44f31d87b449b5.tar.xz
core-2a22448e45cc88c0515f82708b44f31d87b449b5.zip
Hopefully fixing the #481 bug (please report).
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3087 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/Distro/Base.pm')
-rw-r--r--installer/OpenSLX/OSSetup/Distro/Base.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/installer/OpenSLX/OSSetup/Distro/Base.pm b/installer/OpenSLX/OSSetup/Distro/Base.pm
index 075c0818..23a53243 100644
--- a/installer/OpenSLX/OSSetup/Distro/Base.pm
+++ b/installer/OpenSLX/OSSetup/Distro/Base.pm
@@ -173,6 +173,12 @@ sub startSession
if (slxsystem("mount -t proc proc '/proc'")) {
warn _tr("unable to mount '%s' (%s)\n", "$osDir/proc", $!);
}
+ if (!-e '/dev/pts' && !mkpath('/dev/pts')) {
+ die _tr("unable to create folder '%s' (%s)\n", "$osDir/dev/pts", $!);
+ }
+ if (slxsystem("mount -t devpts devpts '/dev/pts'")) {
+ warn _tr("unable to mount '%s' (%s)\n", "$osDir/dev/pts", $!);
+ }
}
return 1;
@@ -182,11 +188,14 @@ sub finishSession
{
my $self = shift;
- # umount /proc (if we have 'umount' available)
+ # umount /proc, /dev/pts (if we have 'umount' available)
if (qx{which umount 2>/dev/null}) {
if (slxsystem("umount /proc")) {
warn _tr("unable to umount '%s' (%s)\n", "/proc", $!);
}
+ if (slxsystem("umount /dev/pts")) {
+ warn _tr("unable to umount '%s' (%s)\n", "/dev/pts", $!);
+ }
}
return 1;