Page MenuHomeFreeBSD

skip ctladm test if not installed
ClosedPublic

Authored by olivier on Jun 28 2025, 2:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 6:51 PM
Unknown Object (File)
Sat, Oct 11, 1:05 PM
Unknown Object (File)
Sat, Oct 11, 4:53 AM
Unknown Object (File)
Sat, Oct 11, 4:53 AM
Unknown Object (File)
Sat, Oct 11, 4:53 AM
Unknown Object (File)
Fri, Oct 10, 9:44 PM
Unknown Object (File)
Mon, Oct 6, 2:31 AM
Unknown Object (File)
Sat, Oct 4, 4:26 PM
Subscribers

Details

Summary

Use the same binary check regarding ctladm as with tests/sys/cam/ctl/*.sh scripts.

Diff Detail

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

Event Timeline

olivier created this revision.

This is ok. It should normally be unnecessary, though, because ctladm should always be installed. Are you using pkgbase or something? I guess it might be optional in a pkgbase world.

This revision is now accepted and ready to land.Jun 28 2025, 3:42 PM

This is ok. It should normally be unnecessary, though, because ctladm should always be installed. Are you using pkgbase or something? I guess it might be optional in a pkgbase world.

Yes, indeed, it should now always be installed. However, we have a custom world (WITHOUT_ISCSI) and kernel (no device ctl), and since ctladm is no longer gated behind WITHOUT_ISCSI (commit 08419bf19469), this is the cleanest way I’ve found to fix this specific use case.

This is ok. It should normally be unnecessary, though, because ctladm should always be installed. Are you using pkgbase or something? I guess it might be optional in a pkgbase world.

Yes, indeed, it should now always be installed. However, we have a custom world (WITHOUT_ISCSI) and kernel (no device ctl), and since ctladm is no longer gated behind WITHOUT_ISCSI (commit 08419bf19469), this is the cleanest way I’ve found to fix this specific use case.

Sounds good to me.

This revision was automatically updated to reflect the committed changes.