From b01a9b0d7aa6d681cd0c5703f02997a93e60b72e Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Tue, 13 Feb 2018 14:53:10 +1300 Subject: [PATCH] leave getty@tty1 in a state where it can be re-enabled --- .../lib/systemd/system/getty@tty1.service.d/conditional.conf | 2 ++ .../system/snap.subiquity.subquity-service.d/subiquity.conf | 1 + 2 files changed, 3 insertions(+) create mode 100644 live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/getty@tty1.service.d/conditional.conf diff --git a/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/getty@tty1.service.d/conditional.conf b/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/getty@tty1.service.d/conditional.conf new file mode 100644 index 00000000..da3eed67 --- /dev/null +++ b/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/getty@tty1.service.d/conditional.conf @@ -0,0 +1,2 @@ +[Unit] +ConditionPathExists=/run/subiquity/complete \ No newline at end of file diff --git a/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/snap.subiquity.subquity-service.d/subiquity.conf b/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/snap.subiquity.subquity-service.d/subiquity.conf index 76c1cb7f..9ae26356 100644 --- a/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/snap.subiquity.subquity-service.d/subiquity.conf +++ b/live-build/ubuntu-server/includes.binary/overlay/lib/systemd/system/snap.subiquity.subquity-service.d/subiquity.conf @@ -1,6 +1,7 @@ [Unit] IgnoreOnIsolate=yes After=systemd-user-sessions.service plymouth-quit-wait.service +ConditionPathExists=!/run/subiquity/complete [Service] UtmpIdentifier=tty1