]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make sure we put two slashes in autologin dropins
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 21 Sep 2023 14:49:48 +0000 (16:49 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 22 Sep 2023 09:33:17 +0000 (11:33 +0200)
By moving these into the python file we accidentally got rid of one
slash, let's add it back.

mkosi/__init__.py

index c5639fdfdfa2ef74bf40dded0927e764c1cc70a5..1289e5ac87f86567fe0b2ed611f13e8a4a622a8e 100644 (file)
@@ -182,7 +182,7 @@ def configure_autologin(state: MkosiState) -> None:
                 """\
                 [Service]
                 ExecStart=
-                ExecStart=-/sbin/agetty -o '-f -p -- \\u' --autologin root --noclear --keep-baud console 115200,38400,9600 $TERM
+                ExecStart=-/sbin/agetty -o '-f -p -- \\\\u' --autologin root --noclear --keep-baud console 115200,38400,9600 $TERM
                 StandardInput=tty
                 StandardOutput=tty
                 """
@@ -196,7 +196,7 @@ def configure_autologin(state: MkosiState) -> None:
                 """\
                 [Service]
                 ExecStart=
-                ExecStart=-/sbin/agetty -o '-f -p -- \\u' --autologin root --noclear - $TERM
+                ExecStart=-/sbin/agetty -o '-f -p -- \\\\u' --autologin root --noclear - $TERM
                 StandardInput=tty
                 StandardOutput=tty
                 """
@@ -210,7 +210,7 @@ def configure_autologin(state: MkosiState) -> None:
                 """\
                 [Service]
                 ExecStart=
-                ExecStart=-/sbin/agetty -o '-f -p -- \\u' --autologin root --keep-baud 115200,57600,38400,9600 - $TERM
+                ExecStart=-/sbin/agetty -o '-f -p -- \\\\u' --autologin root --keep-baud 115200,57600,38400,9600 - $TERM
                 StandardInput=tty
                 StandardOutput=tty
                 """