Merge ~oem-solutions-group/pc-enablement/+git/oem-volatile-task-stella:main-task-to-install-proposed into ~oem-solutions-group/pc-enablement/+git/oem-volatile-task-stella:main

Proposed by Artur Pak
Status: Merged
Approved by: jeremyszu
Approved revision: 9651e2730c3af01bf61d0453089aae1a45fdbc0d
Merged at revision: 9651e2730c3af01bf61d0453089aae1a45fdbc0d
Proposed branch: ~oem-solutions-group/pc-enablement/+git/oem-volatile-task-stella:main-task-to-install-proposed
Merge into: ~oem-solutions-group/pc-enablement/+git/oem-volatile-task-stella:main
Diff against target: 38 lines (+24/-0)
2 files modified
debian/changelog (+6/-0)
server-chroottask/10_install_packages (+18/-0)
Reviewer Review Type Date Requested Status
jeremyszu (community) Approve
Andy Chi Approve
Review via email: mp+455768@code.launchpad.net

Commit message

Add task to install proposed packages

To post a comment you must log in.
Revision history for this message
Andy Chi (andch) wrote :

LGTM.

review: Approve
Revision history for this message
jeremyszu (os369510) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index f1f3e49..1190b2b 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,9 @@
6+oem-volatile-task-stella (1.0-ubuntu4) jammy; urgency=medium
7+
8+ * Add installing proposed packages feature (# PCSWE-936)
9+
10+ -- Artur Pak <artur.pak@canonical.com> Thu, 19 Oct 2023 10:32:14 +0800
11+
12 oem-volatile-task-stella (1.0-ubuntu3) jammy; urgency=medium
13
14 * Remove volatile-task(s) after OOBE. (LP: #1998573)
15diff --git a/server-chroottask/10_install_packages b/server-chroottask/10_install_packages
16new file mode 100755
17index 0000000..c2c6e05
18--- /dev/null
19+++ b/server-chroottask/10_install_packages
20@@ -0,0 +1,18 @@
21+#!/bin/bash
22+
23+set -x
24+
25+# JIRA: https://warthogs.atlassian.net/browse/PCSWE-936
26+# Installs packages from proposed repo
27+
28+. /usr/share/volatile/common.sh
29+
30+export APT_OPTIONS="--yes --allow-downgrades --allow-remove-essential --allow-unauthenticated -o Acquire::http::No-Cache=True -o Acquire::Retries=3 -o APT::Get::AllowUnauthenticated=true"
31+
32+enabling_proposed
33+
34+for i in $(/usr/share/volatile/generate-dpkg-list -k PREREQ_PROPOSED_PKG); do
35+ apt-get ${APT_OPTIONS} install "$i"
36+done
37+
38+disabling_proposed

Subscribers

People subscribed via source and target branches

to all changes: