summaryrefslogtreecommitdiffstats
path: root/recipes-core/sysvinit/files
diff options
context:
space:
mode:
authorJaewon Lee <jaewon.lee@xilinx.com>2020-03-23 17:01:24 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2020-03-30 10:37:05 -0400
commitf1e768dfdfb148b9b4c6aaaf065ccea79dd5484d (patch)
tree1aa17bb56fda52d5cf2377d83b112ba8e89a794d /recipes-core/sysvinit/files
parent540afb9d9d32d7d8678095cbbe9c10468923f638 (diff)
downloadmeta-virtualization-f1e768dfdfb148b9b4c6aaaf065ccea79dd5484d.tar.gz
sysvinit-inittab_xen: Using getty wrapper to minimize console messages
Previously the following message was printed on the console every 5 minutes: INIT: Id "X0" respawning too fast: disabled for 5 minutes Installing and using a getty-wrapper that will check for the hypervisor (hvc0) device and if not present, will call sleep Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-core/sysvinit/files')
-rw-r--r--recipes-core/sysvinit/files/getty-wrapper8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-core/sysvinit/files/getty-wrapper b/recipes-core/sysvinit/files/getty-wrapper
new file mode 100644
index 00000000..236e29e7
--- /dev/null
+++ b/recipes-core/sysvinit/files/getty-wrapper
@@ -0,0 +1,8 @@
1#!/bin/sh
2if test -c /dev/"$2"
3then
4 exec /sbin/getty $*
5else
6 exec sleep 3600d
7fi
8