diff options
author | Lars Müller | 2007-01-20 15:46:30 +0100 |
---|---|---|
committer | Lars Müller | 2007-01-20 15:46:30 +0100 |
commit | 0e6dae4d56ca5e29a8f461c43424aefc7b0a08b5 (patch) | |
tree | f047793f2e99fd3a107ee96d7e3770615f809efa /installer | |
parent | Remove obsoleted variables from settings files. (diff) | |
download | core-0e6dae4d56ca5e29a8f461c43424aefc7b0a08b5.tar.gz core-0e6dae4d56ca5e29a8f461c43424aefc7b0a08b5.tar.xz core-0e6dae4d56ca5e29a8f461c43424aefc7b0a08b5.zip |
Store the return code and pass it on error to the error message
function.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@631 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/slxossetup | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/installer/slxossetup b/installer/slxossetup index ae48877f..8855ddc6 100755 --- a/installer/slxossetup +++ b/installer/slxossetup @@ -235,7 +235,8 @@ function setup_bootstrap_1c() chroot "${CHROOT_DIR}/${SLX_BOOTSTRAP_PATH}" \ /bin/rpm --root="${SLX_STAGE1_FINAL_PATH}" -ivh ${packagelist} - test $? -eq 0 || \ + rc=$? + test ${rc} -eq 0 || \ ErrorMsg ${rc} "Bootstrap failed! " cp -p /etc/resolv.conf "${CHROOT_DIR}/${SLX_BOOTSTRAP_PATH}/${SLX_STAGE1_FINAL_PATH}/etc/" ;; |