From 2a22448e45cc88c0515f82708b44f31d87b449b5 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 13 Aug 2009 14:34:04 +0000 Subject: Hopefully fixing the #481 bug (please report). git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3087 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSSetup/Distro/Base.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'installer/OpenSLX/OSSetup/Distro/Base.pm') 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; -- cgit v1.2.3-55-g7522