Re: etcupdate created empty files = system unbootable

From: Miroslav Lachman <>
Date: Sun, 07 May 2023 18:29:08 UTC
On 06/05/2023 09:33, Miroslav Lachman wrote:


> As you can see, cp failed, but etcupdate continued without any sign of 
> error.
> cp failed because I did installkernel & installworld without rebooting. 
> I have never run into a problem like this in the past, but I understand 
> the reason - running the new 13.2 binary "cp" on an older 12.3 kernel is 
> not supported.
> However, there is a bug in etcupdate which causes it to continue 
> silently instead of stopping when the first copy fails.
> This function needs to check the return status of cp and not blindly 
> return 0 even if the copy failed. In other words, the function 
> install_new() does not do what the comment says. This needs to be fixed.

PR 271287 with attached patch

Kind regards
Miroslav Lachman