From f1e768dfdfb148b9b4c6aaaf065ccea79dd5484d Mon Sep 17 00:00:00 2001 From: Jaewon Lee Date: Mon, 23 Mar 2020 17:01:24 -0700 Subject: 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 Signed-off-by: Mark Hatle Signed-off-by: Bruce Ashfield --- recipes-core/sysvinit/files/getty-wrapper | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 recipes-core/sysvinit/files/getty-wrapper (limited to 'recipes-core/sysvinit/files') 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 @@ +#!/bin/sh +if test -c /dev/"$2" +then + exec /sbin/getty $* +else + exec sleep 3600d +fi + -- cgit v1.2.3-54-g00ecf