Bug#1106830: initscripts: checkroot.sh returns error and does not attempt to save logs if logfile does not exist

Mark Hindley mark at hindley.org.uk
Mon Sep 29 14:40:14 BST 2025


Thorsten,

Thanks

On Thu, Sep 25, 2025 at 01:07:36AM +0200, tg at debian.org wrote:
> The test -e was added to catch a specific failure mode,
> according to the commit message I appear to have written ;)

I have to admit to being somewhat unclear what the specific failure it was
intended to prevent is, even after reading the commit.

For me, running

 /sbin/logsave -s /tmp/nonexistent.log id

creates the logfile with the content I would expect.

Man logsave(8) only refers to logsave holding output in memory if the parent
directory doesn't exist.

Can you elucidate?

Thanks

Mark



More information about the Debian-init-diversity mailing list