-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd: add coreos-installer-noreboot.service
Let's drop to a shell if the user doesn't want to reboot for whatever reason. Otherwise we just idle in the coreos-installer.target but you can't do anything because you have no shell.
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Give Login Shell After CoreOS Installer | ||
After=coreos-installer.service | ||
ConditionPathExists=!/run/coreos-installer-reboot | ||
|
||
[Service] | ||
Type=oneshot | ||
StandardInput=tty-force | ||
StandardOutput=inherit | ||
StandardError=inherit | ||
ExecStartPre=/usr/bin/echo -e "\nCoreOS install complete. Starting login shell\n" | ||
ExecStart=/usr/sbin/sulogin --force | ||
ExecStartPost=/usr/bin/systemctl --no-block reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters