From f5c5b7e0efc4a8c481b0e60d9d0959dae9301bb9 Mon Sep 17 00:00:00 2001 From: Lars Müller Date: Sat, 28 Apr 2007 20:19:11 +0000 Subject: slxbootstrap is a candidate for removal too. The script also had been a prototype. The features are now covered by slxos-setup. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@948 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/obsolete/slxbootstrap | 81 +++++++++++++++++++++++++++++++++++++++++ installer/slxbootstrap | 81 ----------------------------------------- 2 files changed, 81 insertions(+), 81 deletions(-) create mode 100755 installer/obsolete/slxbootstrap delete mode 100755 installer/slxbootstrap (limited to 'installer') diff --git a/installer/obsolete/slxbootstrap b/installer/obsolete/slxbootstrap new file mode 100755 index 00000000..f240ef0f --- /dev/null +++ b/installer/obsolete/slxbootstrap @@ -0,0 +1,81 @@ +#! /bin/ash + +PATH="/bin:/sbin:/usr/bin:/usr/sbin" + +: ${SLX_BOOTSTRAP_FAIL_WGET:="yes"} +: ${SLX_BOOTSTRAP_PATH:="/slxbootstrap"} +: ${SLX_STAGE1_FINAL_PATH:="/slxfinal"} + +test -f /etc/slxbootstrap.conf +. /etc/slxbootstrap.conf + +test "${SLX_INST_SOURCE_PACKAGE_SUBDIR}" && \ + SLX_INST_SOURCE_PACKAGE_SUBDIR="/${SLX_INST_SOURCE_PACKAGE_SUBDIR}" + +download_file () { + case ${file} in + ftp://*|http://*) + wget "${file}" + ;; + *) + wget "${SLX_INST_SOURCE_BASEURL}${SLX_INST_SOURCE_PACKAGE_SUBDIR}/${file}" + ;; + esac + if test $? != 0; then + if test "${SLX_BOOTSTRAP_FAIL_WGET}" = "no"; then + continue + else + echo "Error: Unable to download ${SLX_INST_SOURCE_BASEURL}/${file}" + exit 1 + fi + fi +} + +for dir in / ${SLX_BOOTSTRAP_PATH}/${SLX_STAGE1_FINAL_PATH}; do + test -d "${dir}/dev" || \ + mkdir -p "${dir}/dev" + mknod "${dir}/dev/null" c 1 3 +done + +test -d /etc/prereqfiles && \ + cp -pr /etc/prereqfiles/* "${SLX_BOOTSTRAP_PATH}/${SLX_STAGE1_FINAL_PATH}/" + +test -d "${SLX_BOOTSTRAP_PATH}" || \ + mkdir -p "${SLX_BOOTSTRAP_PATH}" +cd "${SLX_BOOTSTRAP_PATH}" + +for file in ${SLX_BASE_PREREQ_PACKAGES}; do + download_file + case "${file}" in + *.deb) + ar x "${file##*/}" + if test $? != 0; then + echo "Error: Unable to unpack archive ${file##*/}" + exit 1 + fi + tar xzf data.tar.gz + rm -f debian-binary *.tar.gz + ;; + *.rpm) + rpm2cpio "${file##*/}" | \ + cpio -i -d +# Enable error check as soon as busybox 1.3.1 is used. +# if test $? != 0; then +# echo "Error: Unable to rpm2cpio | cpio $file" +# exit 1 +# fi + ;; + esac +done + +for file in ${SLX_BASE_BOOTSTRAP_PACKAGES} ${SLX_BASE_BOOTSTRAP_PREREQ_PACKAGES}; do + download_file +done + +for file in ${SLX_INST_SOURCE_PACKAGEKEYS}; do + wget "${SLX_INST_SOURCE_BASEURL}/${file}" + if test $? != 0; then + echo "Error: Unable to download ${SLX_INST_SOURCE_BASEURL}/${file}" + exit 1 + fi +done diff --git a/installer/slxbootstrap b/installer/slxbootstrap deleted file mode 100755 index f240ef0f..00000000 --- a/installer/slxbootstrap +++ /dev/null @@ -1,81 +0,0 @@ -#! /bin/ash - -PATH="/bin:/sbin:/usr/bin:/usr/sbin" - -: ${SLX_BOOTSTRAP_FAIL_WGET:="yes"} -: ${SLX_BOOTSTRAP_PATH:="/slxbootstrap"} -: ${SLX_STAGE1_FINAL_PATH:="/slxfinal"} - -test -f /etc/slxbootstrap.conf -. /etc/slxbootstrap.conf - -test "${SLX_INST_SOURCE_PACKAGE_SUBDIR}" && \ - SLX_INST_SOURCE_PACKAGE_SUBDIR="/${SLX_INST_SOURCE_PACKAGE_SUBDIR}" - -download_file () { - case ${file} in - ftp://*|http://*) - wget "${file}" - ;; - *) - wget "${SLX_INST_SOURCE_BASEURL}${SLX_INST_SOURCE_PACKAGE_SUBDIR}/${file}" - ;; - esac - if test $? != 0; then - if test "${SLX_BOOTSTRAP_FAIL_WGET}" = "no"; then - continue - else - echo "Error: Unable to download ${SLX_INST_SOURCE_BASEURL}/${file}" - exit 1 - fi - fi -} - -for dir in / ${SLX_BOOTSTRAP_PATH}/${SLX_STAGE1_FINAL_PATH}; do - test -d "${dir}/dev" || \ - mkdir -p "${dir}/dev" - mknod "${dir}/dev/null" c 1 3 -done - -test -d /etc/prereqfiles && \ - cp -pr /etc/prereqfiles/* "${SLX_BOOTSTRAP_PATH}/${SLX_STAGE1_FINAL_PATH}/" - -test -d "${SLX_BOOTSTRAP_PATH}" || \ - mkdir -p "${SLX_BOOTSTRAP_PATH}" -cd "${SLX_BOOTSTRAP_PATH}" - -for file in ${SLX_BASE_PREREQ_PACKAGES}; do - download_file - case "${file}" in - *.deb) - ar x "${file##*/}" - if test $? != 0; then - echo "Error: Unable to unpack archive ${file##*/}" - exit 1 - fi - tar xzf data.tar.gz - rm -f debian-binary *.tar.gz - ;; - *.rpm) - rpm2cpio "${file##*/}" | \ - cpio -i -d -# Enable error check as soon as busybox 1.3.1 is used. -# if test $? != 0; then -# echo "Error: Unable to rpm2cpio | cpio $file" -# exit 1 -# fi - ;; - esac -done - -for file in ${SLX_BASE_BOOTSTRAP_PACKAGES} ${SLX_BASE_BOOTSTRAP_PREREQ_PACKAGES}; do - download_file -done - -for file in ${SLX_INST_SOURCE_PACKAGEKEYS}; do - wget "${SLX_INST_SOURCE_BASEURL}/${file}" - if test $? != 0; then - echo "Error: Unable to download ${SLX_INST_SOURCE_BASEURL}/${file}" - exit 1 - fi -done -- cgit v1.2.3-55-g7522