Page MenuHomeFreeBSD

moused,syscons: Avoid warning if system has no /dev/ttyv*
ClosedPublic

Authored by emaste on Sep 2 2025, 5:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 22, 11:15 AM
Unknown Object (File)
Oct 26 2025, 1:24 AM
Unknown Object (File)
Oct 24 2025, 5:06 AM
Unknown Object (File)
Oct 18 2025, 3:42 PM
Unknown Object (File)
Oct 17 2025, 4:50 AM
Unknown Object (File)
Oct 16 2025, 5:42 PM
Unknown Object (File)
Oct 16 2025, 3:55 AM
Unknown Object (File)
Oct 14 2025, 5:27 PM
Subscribers

Details

Summary
A VM had no virtual terminals and emitted a warning on boot
`eval: cannot open /dev/ttyv*: No such file or directory`.
 
Break the loop in this case to avoid the warning.
 
PR:             289173

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste requested review of this revision.Sep 2 2025, 5:05 PM
emaste created this revision.

Just an optional suggestion (should be done on all three cases, of course).

libexec/rc/rc.d/moused
73
This revision is now accepted and ready to land.Sep 2 2025, 5:14 PM

I agree with @jlduran, all three should be covered. I applied the patch locally and the issue is gone.

Same issue exists in 14 and 13. I guess should be MFC'ed.

Thanks @michaelo for your review, I pushed before seeing the update in the review. I will MFC in a few days or a week.