aboutsummaryrefslogtreecommitdiffstats
path: root/patches/fuel-agent/0009-FIXME-Add-force-yes-to-apt-get-dist-upgrade.patch
blob: 90428c5711dd251a24d20f5390ad31ab9905f472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Date: Fri, 8 Apr 2016 15:28:43 +0200
Subject: [PATCH] FIXME: Add --force-yes to apt-get dist-upgrade.

arm64 udev in Ubuntu Trusty is broken, so we had to provide our own
patched udev package in armband MOS repos.

Due to dpkg version comparison algorithm, our MOS version of udev
is considered a downgrade, which requires --force-yes for
apt-get dist-upgrade to work and pick up this version, otherwise
bootstrap/target image build would fail with apt-get error code 100.

This change can be dropped later, if other packages do not manifest
the same behavior.
---
 fuel_agent/utils/build.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fuel_agent/utils/build.py b/fuel_agent/utils/build.py
index e11ceba..8cca26d 100644
--- a/fuel_agent/utils/build.py
+++ b/fuel_agent/utils/build.py
@@ -111,7 +111,7 @@ def run_apt_get(chroot, packages, eatmydata=False, attempts=10):
     time in X times.
     """
     for action in ('update', 'dist-upgrade'):
-        cmds = ['chroot', chroot, 'apt-get', '-y', action]
+        cmds = ['chroot', chroot, 'apt-get', '-y', '--force-yes', action]
         stdout, stderr = utils.execute(*cmds, attempts=attempts)
         LOG.debug('Running apt-get %s completed.\nstdout: %s\nstderr: %s',
                   action, stdout, stderr)