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

Bartos-Elekes Zsolt muszi at kite.hu
Thu Sep 25 10:45:16 BST 2025


Hi all,

> +	can_use_logsave=true
> +	test -e "$FSCK_LOGFILE" || if test -d "$(dirname "$FSCK_LOGFILE")"; then
> +		can_use_logsave=false
> +	fi

If I understand it correctly, this will not attempt to save the logfile if the logfile, or the directory that will 
contain the logfile does not exist. If /var is on a different partition that is not yet mounted, there is no way to 
check for the existence of the /var/log/fsck directory.

-- 
Best regards,
Zsolt



More information about the Debian-init-diversity mailing list