X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=packer%2Fdebian64_provision.sh;h=64086b80c9ec5c4cf119679cd9f4293594bf7307;hb=0a759e73024f24becfae9148ed614e01c537938d;hp=98b4d37427f925f08f8336a0798da13a3a7c2671;hpb=e02a37035505d78decd7f9847688d442e57ae2f5;p=grml-debootstrap.git diff --git a/packer/debian64_provision.sh b/packer/debian64_provision.sh index 98b4d37..64086b8 100644 --- a/packer/debian64_provision.sh +++ b/packer/debian64_provision.sh @@ -188,7 +188,7 @@ EOF elif [ "$GRML_DEBOOTSTRAP_VERSION" = "git" ] ; then echo "** GRML_DEBOOTSTRAP_VERSION is set to '$GRML_DEBOOTSTRAP_VERSION'" echo "** Using grml-debootstrap from Git repository" - git clone git://git.grml.org/grml-debootstrap.git + git clone https://github.com/grml/grml-debootstrap.git cd grml-debootstrap GRML_DEBOOTSTRAP="CONFFILES=$(pwd) $(pwd)/grml-debootstrap" elif [ "$GRML_DEBOOTSTRAP_VERSION" = "local" ] ; then @@ -203,30 +203,9 @@ EOF fi } -verify_debootstrap_version() { - local required_version=1.0.65 - local present_version=$(dpkg-query --show --showformat='${Version}' debootstrap) - - if dpkg --compare-versions $present_version lt $required_version ; then - echo "** debootstrap version $present_version is older than minimum required version $required_version - upgrading." - apt-get update - apt-get -y install debootstrap - fi -} - grml_debootstrap_execution() { echo "* Installing Debian" - # release specific stuff - case "$DEBIAN_VERSION" in - lenny) - GRML_DEB_OPTIONS="--mirror http://archive.debian.org/debian/ --filesystem ext3" - ;; - stretch) - verify_debootstrap_version - ;; - esac - echo "** Executing: $GRML_DEBOOTSTRAP --hostname $DEBIAN_VERSION --release $DEBIAN_VERSION --target ${INSTALL_TARGET} --grub ${GRUB_TARGET} --password grml --force $GRML_DEB_OPTIONS" | tee -a /tmp/grml-debootstrap.log $GRML_DEBOOTSTRAP --hostname "${DEBIAN_VERSION}" --release "${DEBIAN_VERSION}" --target "${INSTALL_TARGET}" --grub "${GRUB_TARGET}" --password grml --force $GRML_DEB_OPTIONS 2>&1 | tee -a /tmp/grml-debootstrap.log }