From e5645a94f443114387972977181402b6b1ad21f0 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Mon, 5 Feb 2007 19:56:13 +0000 Subject: * added stage1-path as config-option * minor cleanup git-svn-id: http://svn.openslx.org/svn/openslx/trunk@685 95ad53e4-c205-0410-b2fa-d234c58c8868 --- lib/OpenSLX/Basics.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/OpenSLX/Basics.pm b/lib/OpenSLX/Basics.pm index e8874b8a..db643dd8 100644 --- a/lib/OpenSLX/Basics.pm +++ b/lib/OpenSLX/Basics.pm @@ -57,6 +57,8 @@ $openslxConfig{'export-path'} = $ENV{SLX_EXPORT_PATH} || "$openslxConfig{'public-path'}/export", $openslxConfig{'share-path'} = $ENV{SLX_SHARE_PATH} || "$openslxConfig{'base-path'}/share", +$openslxConfig{'stage1-path'} + = $ENV{SLX_STAGE1_PATH} || "$openslxConfig{'private-path'}/stage1", $openslxConfig{'tftpboot-path'} = $ENV{SLX_TFTPBOOT_PATH} || "$openslxConfig{'public-path'}/tftpboot", @@ -99,6 +101,8 @@ my %openslxCmdlineArgs = ( # PXE-configurations, kernels, initramfs and client configurations) 'share-path=s' => \$cmdlineConfig{'share-path'}, # path to sharable data (functionality templates and distro-specs) + 'stage1-path=s' => \$cmdlineConfig{'stage1-path'}, + # path to stage1 systems 'temp-path=s' => \$cmdlineConfig{'temp-path'}, # path to temporary data (used during demuxing) 'tftpboot-path=s' => \$cmdlineConfig{'tftpboot-path'}, @@ -205,7 +209,7 @@ sub trInit if (eval "require OpenSLX::Translations::posix") { %translations = %OpenSLX::Translations::posix::translations; } else { - vlog 1, "unable to load translations module 'posix' ($!)."; + vlog 1, "unable to load translations module 'posix' ($@)."; } if (lc($locale) ne 'posix') { -- cgit v1.2.3-55-g7522