From 42297f7576577eb9bdc7bafc8a6b8eefb6ecaca6 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 6 Sep 2019 11:21:19 +0200 Subject: core-services/05-misc.sh: create utmp early --- core-services/05-misc.sh | 1 + core-services/99-cleanup.sh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core-services/05-misc.sh b/core-services/05-misc.sh index a7d7b19..7b035d6 100644 --- a/core-services/05-misc.sh +++ b/core-services/05-misc.sh @@ -1,5 +1,6 @@ # vim: set ts=4 sw=4 et: +install -m0664 -o root -g utmp /dev/null /run/utmp halt -B # for wtmp if [ -z "$VIRTUALIZATION" ]; then diff --git a/core-services/99-cleanup.sh b/core-services/99-cleanup.sh index 2d7da1d..f27f728 100644 --- a/core-services/99-cleanup.sh +++ b/core-services/99-cleanup.sh @@ -1,6 +1,5 @@ # vim: set ts=4 sw=4 et: -install -m0664 -o root -g utmp /dev/null /run/utmp if [ ! -e /var/log/wtmp ]; then install -m0664 -o root -g utmp /dev/null /var/log/wtmp fi -- cgit 1.4.1