From 7437ef45f9c76d102a182d8cbc6697de0b8ae525 Mon Sep 17 00:00:00 2001 From: Elias Toivola Date: Thu, 13 Mar 2025 13:49:17 +0200 Subject: [PATCH] RTA: disable auto-upgrades in Ubuntu 22.04 aarch64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disable auto-upgrades as it may lock and block scripts from running, resulting an error in /var/lib/dpkg/lock-frontend. Also remove 01-disable_auto_suspend.sh as auto suspend is already disabled in tier-1. Pick-to: 6.8 Change-Id: Ia4420de72b26c7b4fd851f079fd4686624e5bf02 Reviewed-by: Matti Paaso (cherry picked from commit 078bd29e2498c779a0c344561fa6f1b3800aa025) Reviewed-by: Johanna Äijälä Reviewed-by: Qt Cherry-pick Bot --- .../01-disable-updates.sh | 9 +++++++++ .../01-disable_auto_suspend.sh | 6 ------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/01-disable-updates.sh delete mode 100755 coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/01-disable_auto_suspend.sh diff --git a/coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/01-disable-updates.sh b/coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/01-disable-updates.sh new file mode 100644 index 00000000..2a64a3ee --- /dev/null +++ b/coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/01-disable-updates.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +set -ex + +# Disable updates +echo "Disabling auto-upgrades" +sudo sed -i 's/"1"/"0"/g' /etc/apt/apt.conf.d/20auto-upgrades diff --git a/coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/01-disable_auto_suspend.sh b/coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/01-disable_auto_suspend.sh deleted file mode 100755 index 8ad69bfa..00000000 --- a/coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/01-disable_auto_suspend.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -#Copyright (C) 2023 The Qt Company Ltd -#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only - -sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target -