Re: make delete-old does not delete old devd(8) config

From: Herbert J. Skuhra <herbert_at_gojira.at>
Date: Sun, 23 Mar 2025 14:50:54 UTC
On Sun, 23 Mar 2025 15:07:34 +0100, Artem Bunichev wrote:
> 
> Hi all!
> 
> I build my 14-STABLE system like that:
>   make buildworld
>   make buildkernel
>   make installkernel
>   reboot
>   etcupdate -p
>   make installworld
>   reboot
>   etcupdate
>   make delete-old delete-old-libs
> 
> In my /etc/src.conf I have `WITHOUT_AUTOFS=YES'.  Also, I do _not_ have
> `options AUTOFS' line for autofs(5) driver in my custom kernel config file.
> 
> Everything works fine, but I noticed messages `sh: /usr/sbin/automount not
> found` during the boot.  I figured that it is caused by the
> /etc/devd/autofs.conf - I deleted it and messages disappeared.  But I'm
> confused now: why wasn't that file found and deleted by `make delete-old'? Or
> it shouldn't be?
> 
> I found a commit, where devd config for autofs(5) was moved into a separate
> file: https://reviews.freebsd.org/D42495.  There it's said that it shouldn't
> be used if I don't have an autofs installed.  So I don't, but it is.
> 
> Can you help me to understand this, please?  Does the problem really exist or
> I probably messed something up during the build process?
> 
> Thank you,
> Artem.

I guess the following commit is missing in stable/14:

<https://cgit.freebsd.org/src/commit/?id=272b4b764bdfb563f655da37ef9ec8c01c77f386>