From 9738d8b0e4af85adef79e41d8abf5109031d6ac6 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Mon, 17 Mar 2008 20:51:50 +0000 Subject: * instead of using a fixed basic path, we now supply a longer list in an overridable method, making it possible to set distro-specific paths git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1643 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSSetup/Distro/Base.pm | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/OpenSLX/OSSetup/Distro/Base.pm b/installer/OpenSLX/OSSetup/Distro/Base.pm index a3753b1f..64d8d43b 100644 --- a/installer/OpenSLX/OSSetup/Distro/Base.pm +++ b/installer/OpenSLX/OSSetup/Distro/Base.pm @@ -163,11 +163,29 @@ sub startSession # enter chroot jail chrootInto($osDir); - $ENV{PATH} = "/bin:/sbin:/usr/bin:/usr/sbin"; + $ENV{PATH} = join(':', @{$self->getDefaultPathList()}); return; } +sub getDefaultPathList +{ + my $self = shift; + + return [ qw( + /sbin + /usr/sbin + /usr/local/sbin + /usr/local/bin + /usr/bin + /bin + /usr/bin/X11 + /usr/X11R6/bin + /opt/kde3/bin + /opt/gnome/bin + ) ]; +} + sub finishSession { my $self = shift; -- cgit v1.2.3-55-g7522