Merge ~saviq/ubiquity:support-cloud-init into ubiquity:master

Proposed by Michał Sawicz
Status: Superseded
Proposed branch: ~saviq/ubiquity:support-cloud-init
Merge into: ubiquity:master
Diff against target: 22 lines (+2/-1)
2 files modified
data/oem-config.service (+1/-0)
data/oem-config.target (+1/-1)
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Ubuntu Installer Team Pending
Review via email: mp+357727@code.launchpad.net

This proposal has been superseded by a proposal from 2022-07-01.

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Is this still wanted/needed?

Revision history for this message
Michał Sawicz (saviq) wrote :

@Dimitri I believe it is, yes. It's been almost 2 years ago now that I encountered this problem, so everything could have changed…

Unmerged commits

8caaccb... by Michał Sawicz

Run after cloud-init if installed

If cloud-init is installed, oem-config should run after it, as it may be
setting up stuff that's prerequisite for oem-config.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/data/oem-config.service b/data/oem-config.service
index aa9597b..d5a7eb6 100644
--- a/data/oem-config.service
+++ b/data/oem-config.service
@@ -2,6 +2,7 @@
2Description=End-user configuration after initial OEM installation2Description=End-user configuration after initial OEM installation
3ConditionFileIsExecutable=/usr/sbin/oem-config-firstboot3ConditionFileIsExecutable=/usr/sbin/oem-config-firstboot
4ConditionPathExists=/dev/tty14ConditionPathExists=/dev/tty1
5After=cloud-init.service
56
6# We never want to run the oem-config job in the live environment (as is the7# We never want to run the oem-config job in the live environment (as is the
7# case in some custom configurations) or in recovery mode.8# case in some custom configurations) or in recovery mode.
diff --git a/data/oem-config.target b/data/oem-config.target
index a53608b..5738cbb 100644
--- a/data/oem-config.target
+++ b/data/oem-config.target
@@ -4,4 +4,4 @@ Requires=basic.target
4Conflicts=rescue.service rescue.target multi-user.target4Conflicts=rescue.service rescue.target multi-user.target
5After=basic.target rescue.service rescue.target5After=basic.target rescue.service rescue.target
6AllowIsolate=yes6AllowIsolate=yes
7Wants=oem-config.service network-manager.service getty-static.service systemd-user-sessions.service systemd-resolved.service7Wants=oem-config.service network-manager.service getty-static.service systemd-user-sessions.service systemd-resolved.service cloud-init.service

Subscribers

People subscribed via source and target branches