summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorLars Müller2006-12-15 23:06:36 +0100
committerLars Müller2006-12-15 23:06:36 +0100
commite200f1aa7f1091d3bed3e3715bf04d181ab1dbb0 (patch)
treebf60a5c14f9220e0b1a1007d68a6af2fc147ced4 /installer
parentRenamed run-init to switch_root to simplify the usage of the busybox (diff)
downloadcore-e200f1aa7f1091d3bed3e3715bf04d181ab1dbb0.tar.gz
core-e200f1aa7f1091d3bed3e3715bf04d181ab1dbb0.tar.xz
core-e200f1aa7f1091d3bed3e3715bf04d181ab1dbb0.zip
Allow to use a systems directory from the current working directory. By
this we're able to call slxossetup the subversion tree. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@546 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/slxossetup9
1 files changed, 8 insertions, 1 deletions
diff --git a/installer/slxossetup b/installer/slxossetup
index 61fccdc5..d71b3743 100755
--- a/installer/slxossetup
+++ b/installer/slxossetup
@@ -25,7 +25,12 @@ SLX_SYSTEM_BASENAME="${SLX_SYSTEM_NAME%%-*}"
SLX_SYSTEM_VARIANTNAME="${SLX_SYSTEM_NAME##*-}"
test "${SLX_SYSTEM_VARIANTNAME}" = "${SLX_SYSTEM_BASENAME}" && \
unset SLX_SYSTEM_VARIANTNAME
-SLX_SYSTEM_CONFIG_PATH="${SLX_CONFIG_PATH}/systems/${SLX_SYSTEM_BASENAME}"
+for dir in . ${SLX_CONFIG_PATH}; do
+ if test -d "${dir}/systems/${SLX_SYSTEM_BASENAME}"; then
+ SLX_SYSTEM_CONFIG_PATH="${dir}/systems/${SLX_SYSTEM_BASENAME}"
+ break
+ fi
+done
# Read config files for a particular system
for suffix in "" local ${SLX_SYSTEM_VARIANTNAME}; do
@@ -101,6 +106,7 @@ function slxossetup_rpm_suse()
# FIXME: This should be controled by the config file.
find etc/ -type f -print0 | \
xargs -0 rm -f
+ popd >/dev/null
# Install base system files
for file in ${SLX_SYSTEM_CONFIG_PATH}/BASE_FILE_*; do
@@ -111,6 +117,7 @@ function slxossetup_rpm_suse()
test -d ""${SLX_STAGE1_PATH}/${dest_path}" || \
mkdir ""${SLX_STAGE1_PATH}/${dest_path}"
cp -p "${file}" "${SLX_STAGE1_PATH}/${dest_file}"
+ chown root: "${SLX_STAGE1_PATH}/${dest_file}"
done
unset packagelist