sysmaster/backport-fix-getty-generator-delelte-double-quote-in-the-conf.patch
2023-10-30 18:34:38 +08:00

70 lines
2.0 KiB
Diff

From 00f3c592cf4d42009fcf15916b944abec4ed3876 Mon Sep 17 00:00:00 2001
From: zhangyao2022 <zhangyao108@huawei.com>
Date: Sat, 28 Oct 2023 15:56:01 +0800
Subject: [PATCH] fix(getty-generator): delelte double quote in the
configuration file
---
tools/run_with_vm/getty.target | 4 ++--
tools/run_with_vm/getty@.service | 12 ++++++------
tools/run_with_vm/serial-getty@.service | 10 +++++-----
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/tools/run_with_vm/getty.target b/tools/run_with_vm/getty.target
index bd44925e..56261a2b 100644
--- a/tools/run_with_vm/getty.target
+++ b/tools/run_with_vm/getty.target
@@ -1,3 +1,3 @@
[Unit]
-Description="Login Prompts"
-Documentation="man sysmaster secial target"
+Description=Login Prompts
+Documentation=man sysmaster secial target
diff --git a/tools/run_with_vm/getty@.service b/tools/run_with_vm/getty@.service
index 0e0d88d4..ae25bd78 100644
--- a/tools/run_with_vm/getty@.service
+++ b/tools/run_with_vm/getty@.service
@@ -1,12 +1,12 @@
[Unit]
-Description="Getty on %I"
-ConditionPathExists="/dev/tty0"
+Description=Getty on %I
+ConditionPathExists=/dev/tty0
[Service]
-ExecStart="-/sbin/agetty -o '-p -- \\u' --noclear %I"
-Type="simple"
-Restart="always"
+ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I
+Type=simple
+Restart=always
RestartSec=0
[Install]
-WantedBy="getty.target"
+WantedBy=getty.target
diff --git a/tools/run_with_vm/serial-getty@.service b/tools/run_with_vm/serial-getty@.service
index a80f7236..01d782a6 100644
--- a/tools/run_with_vm/serial-getty@.service
+++ b/tools/run_with_vm/serial-getty@.service
@@ -1,11 +1,11 @@
[Unit]
-Description="Serial Getty on %I"
+Description=Serial Getty on %I
[Service]
-ExecStart="-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,57600,38400,9600 %I"
-Type="simple"
-Restart="always"
+ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,57600,38400,9600 %I
+Type=simple
+Restart=always
RestartSec=0
[Install]
-WantedBy="getty.target"
+WantedBy=getty.target
--
2.33.0