Bug 15983 - OS type detecting is not robust enough
Summary: OS type detecting is not robust enough
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: CTDB (show other bugs)
Version: 4.12.7
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Martin Schwenke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-23 09:58 UTC by Peng Sun
Modified: 2026-01-25 03:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peng Sun 2026-01-23 09:58:16 UTC
Current OS detecting way:

# ctdb/config/functions
if [ -x /sbin/startproc ]; then
    CTDB_INIT_STYLE="suse"
elif [ -x /sbin/start-stop-daemon ]; then
    CTDB_INIT_STYLE="debian"
else
    CTDB_INIT_STYLE="redhat"
fi

If package dpkg is installed on CentOS node, the node will been detected as Debian incorrectly and nmbd service is required but not exists.
Comment 1 Martin Schwenke 2026-01-25 03:43:14 UTC
This behaviour was changed in Samba v4.20.  OS type detection now uses /etc/os-release.

Samba 4.12.7 is no longer supported.  Please only report bugs against supported versions.