From b373401f1839012149f7e89703462b5e94c76b43 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 26 Nov 2024 16:40:07 +0100 Subject: [PATCH] scripts: assume utmp,wtmp are on tmpfs /run --- etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot | 7 ------- 1 file changed, 7 deletions(-) diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index 3b07e5ed..51fc2a10 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -127,13 +127,6 @@ zero ${target}/var/account/pacct \ ${target}/var/log \ ${target}/var/mail/grml -# on /run we don't have to create it -if [ -d ${target}/var/run ] ; then - echo "Recreate empty utmp and wtmp" - :>${target}/var/run/utmp - :>${target}/var/run/wtmp -fi - if ! [ -x $target/usr/sbin/update-ca-certificates ] ; then echo "Warning: update-ca-certificates not installed" else