From b41e3c47b4e0eae9506e2f2cbb2cc90e4d485c187c361c320c83e608bc7cb9d4 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Tue, 3 May 2016 21:50:58 +0000 Subject: [PATCH] - Add cloud-init-finalbeforelogin.patch (bsc#978048) + Ordering issue, avoid login prompt before cloud-init is finished OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=41 --- cloud-init-finalbeforelogin.patch | 10 ++++++++++ cloud-init.changes | 6 ++++++ cloud-init.spec | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 cloud-init-finalbeforelogin.patch diff --git a/cloud-init-finalbeforelogin.patch b/cloud-init-finalbeforelogin.patch new file mode 100644 index 0000000..3fbafba --- /dev/null +++ b/cloud-init-finalbeforelogin.patch @@ -0,0 +1,10 @@ +--- systemd/cloud-final.service.orig ++++ systemd/cloud-final.service +@@ -1,6 +1,7 @@ + [Unit] + Description=Execute cloud user/final scripts + After=network.target syslog.target cloud-config.service rc-local.service ++Before=systemd-logind.service + Requires=cloud-config.target + Wants=network.target + diff --git a/cloud-init.changes b/cloud-init.changes index d486e15..e17d16c 100644 --- a/cloud-init.changes +++ b/cloud-init.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 3 21:49:47 UTC 2016 - rjschwei@suse.com + +- Add cloud-init-finalbeforelogin.patch (bsc#978048) + + Ordering issue, avoid login prompt before cloud-init is finished + ------------------------------------------------------------------- Tue Mar 15 21:40:25 UTC 2016 - rjschwei@suse.com diff --git a/cloud-init.spec b/cloud-init.spec index 4259c14..c25676a 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -40,6 +40,7 @@ Patch10: cloud-init-no-user-lock-if-already-locked.patch Patch11: dataSourceOpenNebula.patch Patch12: fix-default-systemd-unit-dir.patch Patch13: no_logic_change.patch +Patch14: cloud-init-finalbeforelogin.patch BuildRequires: fdupes BuildRequires: filesystem BuildRequires: python-devel @@ -139,6 +140,7 @@ Unit tests for the cloud-init tools %patch11 -p2 %patch12 %patch13 +%patch14 %if 0%{?suse_version} <= 1130 # disable ecdsa for SLE 11 (not available)