From d0a1909e62d0e48943052d0f5b9cc6496911f3eb Mon Sep 17 00:00:00 2001 From: Christopher Stone Date: Fri, 12 Nov 2021 02:13:33 +0000 Subject: [PATCH] Removing old grub removal step Closes-bug: #1950701 Change-Id: I01f7190db9924baafac4fbc0b45a4c0e158355cc --- .../ubuntu/pre-install.d/00-remove-grub | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 diskimage_builder/elements/ubuntu/pre-install.d/00-remove-grub diff --git a/diskimage_builder/elements/ubuntu/pre-install.d/00-remove-grub b/diskimage_builder/elements/ubuntu/pre-install.d/00-remove-grub deleted file mode 100755 index 094a3f79..00000000 --- a/diskimage_builder/elements/ubuntu/pre-install.d/00-remove-grub +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# The grub post-kernel install hook will barf if the block device can't be -# found (as happens in a chroot). -# Temporarily remove grub, to avoid that confusion. - -if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then - set -x -fi -set -eu -set -o pipefail - -if dpkg-query -W grub-pc; then - apt-get -y remove grub-pc -fi - -if dpkg-query -W grub2-common; then - apt-get -y remove grub2-common -fi