You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Get system information once for both report and compatibility checking
126
+
kernel_hash=get_kernel_hash()
127
+
distro_name=get_distro_info()
128
+
129
+
# Show system information for support if --report flag is used
130
+
ifreport:
131
+
print("=== KernelCare Compatibility Report ===")
132
+
print(f"Kernel Hash: {kernel_hash}")
133
+
print(f"Distribution: {distro_nameor'Unknown'}")
134
+
print(f"Version: Not available")
135
+
136
+
# Get kernel version from /proc/version
137
+
try:
138
+
withopen('/proc/version', 'r') asf:
139
+
kernel_version=f.read().strip()
140
+
print(f"Kernel: {kernel_version}")
141
+
except (IOError, OSError):
142
+
print("Kernel: Unable to read /proc/version")
143
+
144
+
print("=====================================")
121
145
122
146
try:
123
147
ifis_compat():
124
148
myprint(silent, "COMPATIBLE")
125
149
return0
126
150
else:
127
151
# Handle 404 case - check if distro is supported
128
-
distro_name=get_distro_info()
129
152
ifdistro_nameandis_distro_supported(distro_name):
130
153
myprint(silent, "NEEDS REVIEW")
131
154
myprint(silent, "We support your distribution, but we're having trouble detecting your precise kernel configuration. Please, contact CloudLinux Inc. support by email at [email protected] or by request form at https://www.cloudlinux.com/index.php/support")
0 commit comments