Skip to content

Commit 31f4f31

Browse files
committed
coreos-base/oem-gce: keep unit after its run
Otherwise it gets restarted a few times, which displays this line in the logs: ``` Nov 30 13:28:41.819250 enable-oslogin[1232]: /etc/pam.d/sshd already exists. Not enabling OS Login ``` Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
1 parent 64ef372 commit 31f4f31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/units/oem-gce-enable-oslogin.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Before=sshd.socket
88

99
[Service]
1010
Type=oneshot
11+
RemainAfterExit=true
1112

1213
ExecStart=/oem/bin/enable-oslogin
1314

0 commit comments

Comments
 (0)