summaryrefslogtreecommitdiffstats
path: root/installer/slxossetup
diff options
context:
space:
mode:
authorLars Müller2007-01-09 20:41:39 +0100
committerLars Müller2007-01-09 20:41:39 +0100
commit6e6bbcf2ca54fd26688892c9ad540d15c67a50c5 (patch)
tree8be5e1e6f1b07a75c44d385e38058cac3bb72076 /installer/slxossetup
parentDo not call rpm ... *.rpm. Intead collect the list of package from the (diff)
downloadcore-6e6bbcf2ca54fd26688892c9ad540d15c67a50c5.tar.gz
core-6e6bbcf2ca54fd26688892c9ad540d15c67a50c5.tar.xz
core-6e6bbcf2ca54fd26688892c9ad540d15c67a50c5.zip
Only use the packages which are part of SLX_BASE_PREREQ_PACKAGES or
SLX_BASE_BOOTSTRAP_PACKAGES. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@606 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/slxossetup')
-rwxr-xr-xinstaller/slxossetup18
1 files changed, 15 insertions, 3 deletions
diff --git a/installer/slxossetup b/installer/slxossetup
index d4c3d372..a17f8bc7 100755
--- a/installer/slxossetup
+++ b/installer/slxossetup
@@ -57,6 +57,12 @@ for suffix in "" local ${SLX_SYSTEM_VARIANTNAME}; do
. "${SLX_SYSTEM_CONFIG_PATH}/settings${suffix:+.$suffix}"
done
+function ErrorMsg()
+{
+ echo "$0: $2"
+ exit $1
+}
+
function setup_busybox_init()
{
for dir in ${SLX_STAGE1_PATH}; do
@@ -216,9 +222,15 @@ function setup_bootstrap_1c()
chroot "${CHROOT_DIR}/${SLX_BOOTSTRAP_PATH}" \
/bin/rpm --root="${SLX_STAGE1_FINAL_PATH}" --import "${packagekey}"
done
- cd "${CHROOT_DIR}/${SLX_BOOTSTRAP_PATH}"
- packagelist=$( ls *.rpm)
- cd - >/dev/null
+ for file in ${SLX_BASE_PREREQ_PACKAGES} ${SLX_BASE_BOOTSTRAP_PACKAGES}; do
+ test "${SLX_BOOTSTRAP_FAIL_WGET}" = "no" -a \
+ ! -f ${CHROOT_DIR}/${SLX_BOOTSTRAP_PATH}/${file##*/} && \
+ continue
+ packagelist="${packagelist} ${file##*/}"
+ done
+ test -z "{packagelist}" && \
+ ErrorMsg 1 "Packagelist to bootstrap from ${CHROOT_DIR}/${SLX_BOOTSTRAP_PATH} is empty."
+
chroot "${CHROOT_DIR}/${SLX_BOOTSTRAP_PATH}" \
/bin/rpm --root="${SLX_STAGE1_FINAL_PATH}" -ivh ${packagelist}
cp -p /etc/resolv.conf "${CHROOT_DIR}/${SLX_BOOTSTRAP_PATH}/${SLX_STAGE1_FINAL_PATH}/etc/"