[3/3] Add systemd service file to launch bricklayer in install mode.

Message ID 20230224163605.90519-3-stefan.schantl@ipfire.org
State New
Series [1/3] Substitute @BINDIR@ |

Commit Message

Stefan Schantl Feb. 24, 2023, 4:36 p.m. UTC
  This service file will launch bricklayer in install mode
in case "install" has been given on the kernel command line.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
 src/systemd/bricklayer.service.in | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)


diff --git a/src/systemd/bricklayer.service.in b/src/systemd/bricklayer.service.in
index e69de29..852fff1 100644
--- a/src/systemd/bricklayer.service.in
+++ b/src/systemd/bricklayer.service.in
@@ -0,0 +1,30 @@ 
+Description=Launch bricklayer to install a new system
+After=systemd-vconsole-setup.service systemd-user-sessions.service
+# getty-pre.target is a pasive target, we need to request it before we can use it
+# prevent getty from running on any consoles before we are done
+Conflicts=plymouth-quit-wait.service bricklayer.service
+# tell systemd to stop logging to the console, to prevent it's messages
+# with interfering with the Initial Setup TUI potentially running there
+ExecStartPre=/bin/kill -SIGRTMIN+21 1
+ExecStartPre=-/bin/plymouth quit
+# re-enable systemd console logging once Initial Setup is done
+ExecStartPost=/bin/kill -SIGRTMIN+20 1