From f58bf252de439880a6b13a83e0b4027b6a344bcb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 26 May 2017 00:25:26 +0200 Subject: [PATCH] Drop support for Ubuntu precise Ubuntu 12.04 LTS reached its regular End of Life on April 28, 2017. Depends-On: I5e145095a10db112bb27516bfe652d2cdc052a61 Change-Id: I64af4c5183d77a75dcd062895d19b0a1330c8da8 --- .../elements/base/pre-install.d/03-baseline-tools | 6 +----- .../elements/bootloader/finalise.d/50-bootloader | 2 +- .../install.d/05-set-cloud-init-sources | 10 +--------- .../elements/debootstrap/package-installs.yaml | 1 - diskimage_builder/elements/debootstrap/pkg-map | 7 ------- .../dib-python/environment.d/50-dib-python-version | 4 +--- .../elements/ubuntu-core/root.d/10-cache-ubuntu-image | 4 +++- .../test-elements/precise-build-succeeds/README.rst | 1 - .../environment.d/10-set-distro.bash | 1 - tests/run_functests.sh | 1 - 10 files changed, 7 insertions(+), 30 deletions(-) delete mode 100644 diskimage_builder/elements/ubuntu-minimal/test-elements/precise-build-succeeds/README.rst delete mode 100644 diskimage_builder/elements/ubuntu-minimal/test-elements/precise-build-succeeds/environment.d/10-set-distro.bash diff --git a/diskimage_builder/elements/base/pre-install.d/03-baseline-tools b/diskimage_builder/elements/base/pre-install.d/03-baseline-tools index 3b5bb9a6..712b33cf 100755 --- a/diskimage_builder/elements/base/pre-install.d/03-baseline-tools +++ b/diskimage_builder/elements/base/pre-install.d/03-baseline-tools @@ -12,10 +12,6 @@ case $DISTRO_NAME in # Note: add-apt-repository would be nice for RPM platforms too - so when we # need something like it, create a wrapper in dpkg/bin and fedora/bin. apt-get -y update - if [ "${DIB_RELEASE}" = "precise" ]; then - install-packages python-software-properties - else - install-packages software-properties-common - fi + install-packages software-properties-common ;; esac diff --git a/diskimage_builder/elements/bootloader/finalise.d/50-bootloader b/diskimage_builder/elements/bootloader/finalise.d/50-bootloader index a2308660..6b956f80 100755 --- a/diskimage_builder/elements/bootloader/finalise.d/50-bootloader +++ b/diskimage_builder/elements/bootloader/finalise.d/50-bootloader @@ -175,7 +175,7 @@ function install_grub2 { # grub-mkconfig generates a config with the device in it, # This shouldn't be needed, but old code has bugs DIB_RELEASE=${DIB_RELEASE:-} - if [ "$DIB_RELEASE" = 'precise' ] || [ "$DIB_RELEASE" = 'wheezy' ]; then + if [ "$DIB_RELEASE" = 'wheezy' ]; then sed -i "s%search --no.*%%" $GRUB_CFG sed -i "s%set root=.*%set root=(hd0,1)%" $GRUB_CFG fi diff --git a/diskimage_builder/elements/cloud-init-datasources/install.d/05-set-cloud-init-sources b/diskimage_builder/elements/cloud-init-datasources/install.d/05-set-cloud-init-sources index b0995365..1ae5acd7 100755 --- a/diskimage_builder/elements/cloud-init-datasources/install.d/05-set-cloud-init-sources +++ b/diskimage_builder/elements/cloud-init-datasources/install.d/05-set-cloud-init-sources @@ -15,17 +15,9 @@ if [ -z "$DIB_CLOUD_INIT_DATASOURCES" ] ; then fi if [ -d /etc/cloud/cloud.cfg.d ]; then - # DatasourceNone doesn't exist in Ubuntu 12.04 (Precise) - # which uses cloud-init version 0.6.3 - if [ "$(lsb_release -cs)" = 'precise' ] ; then - cat > /etc/cloud/cloud.cfg.d/91-dib-cloud-init-datasources.cfg < /etc/cloud/cloud.cfg.d/91-dib-cloud-init-datasources.cfg < /etc/cloud/cloud.cfg.d/91-dib-cloud-init-datasources.cfg <