diff options
author | Oliver Tappe | 2008-03-17 21:51:50 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-03-17 21:51:50 +0100 |
commit | 9738d8b0e4af85adef79e41d8abf5109031d6ac6 (patch) | |
tree | 9c64668010a870158cb7b96b9c75226cf6893f89 | |
parent | * renamed installSelection() and removeSelection() to ...Packages(), as that's (diff) | |
download | core-9738d8b0e4af85adef79e41d8abf5109031d6ac6.tar.gz core-9738d8b0e4af85adef79e41d8abf5109031d6ac6.tar.xz core-9738d8b0e4af85adef79e41d8abf5109031d6ac6.zip |
* 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
-rw-r--r-- | installer/OpenSLX/OSSetup/Distro/Base.pm | 20 |
1 files changed, 19 insertions, 1 deletions
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; |