Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
systemd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
steam
systemd
Commits
72f6dc81
Commit
72f6dc81
authored
Apr 08, 2015
by
Martin Pitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix getty restart loop when PTS device is gone
Patch backported from 218. Closes: #780711
parent
e32b9e9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
debian/changelog
debian/changelog
+3
-0
debian/patches/series
debian/patches/series
+1
-0
debian/patches/units-make-sure-container-getty-.service-stops-resta.patch
...nits-make-sure-container-getty-.service-stops-resta.patch
+25
-0
No files found.
debian/changelog
View file @
72f6dc81
...
...
@@ -4,6 +4,9 @@ systemd (215-15) UNRELEASED; urgency=medium
*
debian
/
systemd
.{
triggers
,
postinst
}:
Trigger
a
systemctl
daemon
-
reload
when
init
scripts
are
installed
or
removed
(
Closes
:
#
766429
)
[
Martin
Pitt
]
*
Fix
getty
restart
loop
when
PTS
device
is
gone
.
(
Closes
:
#
780711
)
--
Martin
Pitt
<
mpitt
@
debian
.
org
>
Wed
,
08
Apr
2015
10
:
53
:
38
+
0200
systemd
(
215
-
14
)
unstable
;
urgency
=
medium
...
...
debian/patches/series
View file @
72f6dc81
...
...
@@ -144,6 +144,7 @@ scope-make-attachment-of-initial-PIDs-a-bit-more-rob.patch
journald-also-increase-the-SendBuffer-of-dev-log-to-.patch
list-add-macro-for-iterating-through-a-list-an-item-.patch
core-if-two-start-jobs-for-the-same-swap-device-node.patch
units-make-sure-container-getty-.service-stops-resta.patch
## Debian specific patches:
Add-back-support-for-Debian-specific-config-files.patch
...
...
debian/patches/units-make-sure-container-getty-.service-stops-resta.patch
0 → 100644
View file @
72f6dc81
From: Lennart Poettering <lennart@poettering.net>
Date: Tue, 9 Dec 2014 02:12:11 +0100
Subject: units: make sure container-getty@.service stops restarting when the
pts device it is bound to is gone
We only want to restart the getty as long as the pts device is still
around. As soon as it is gone, the service should be removed to.
http://lists.freedesktop.org/archives/systemd-devel/2014-December/026048.html
---
units/container-getty@.service.m4.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/units/container-getty@.service.m4.in b/units/container-getty@.service.m4.in
index 4f7794b..5120466 100644
--- a/units/container-getty@.service.m4.in
+++ b/units/container-getty@.service.m4.in
@@ -14,6 +14,7 @@
After=rc-local.service
)m4_dnl
Before=getty.target
IgnoreOnIsolate=yes
+ConditionPathExists=/dev/pts/%I
[Service]
ExecStart=-/sbin/agetty --noclear --keep-baud pts/%I 115200,38400,9600 $TERM
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment