Try and do one reboot at the end
This commit is contained in:
@@ -46,18 +46,17 @@ systemd:
|
||||
enabled: true
|
||||
contents: |
|
||||
[Unit]
|
||||
Description=Enable SSH after configuration
|
||||
Description=Enable SSH after configuration and reboot
|
||||
After=zincati.service
|
||||
ConditionPathExists=!/var/lib/%N.stamp
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/systemctl start sshd
|
||||
ExecStart=/usr/bin/systemctl enable sshd
|
||||
ExecStart=/usr/bin/touch /var/lib/%N.stamp
|
||||
ExecStart=/usr/bin/rm /etc/issue.d/35-ssh-blocked.issue
|
||||
ExecStart=/usr/bin/systemctl restart getty@tty1
|
||||
ExecStart=/usr/bin/systemctl --no-block reboot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -78,7 +77,6 @@ systemd:
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/rpm-ostree install qemu-guest-agent
|
||||
ExecStart=/usr/bin/touch /var/lib/%N.stamp
|
||||
ExecStart=/usr/bin/systemctl --no-block reboot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user