build-sys: drop all distribution specfic checks
Yay, we now have a completely generic systemd. No distribution specific checks anymore!
This commit is contained in:
@@ -228,7 +228,6 @@
|
||||
|
||||
#define BUS_MANAGER_INTERFACE_PROPERTIES_GENERAL \
|
||||
" <property name=\"Version\" type=\"s\" access=\"read\"/>\n" \
|
||||
" <property name=\"Distribution\" type=\"s\" access=\"read\"/>\n" \
|
||||
" <property name=\"Features\" type=\"s\" access=\"read\"/>\n" \
|
||||
" <property name=\"Tainted\" type=\"s\" access=\"read\"/>\n" \
|
||||
" <property name=\"FirmwareTimestamp\" type=\"t\" access=\"read\"/>\n" \
|
||||
@@ -526,13 +525,11 @@ static int bus_manager_set_runtime_watchdog_usec(DBusMessageIter *i, const char
|
||||
|
||||
static const char systemd_property_string[] =
|
||||
PACKAGE_STRING "\0"
|
||||
DISTRIBUTION "\0"
|
||||
SYSTEMD_FEATURES;
|
||||
|
||||
static const BusProperty bus_systemd_properties[] = {
|
||||
{ "Version", bus_property_append_string, "s", 0 },
|
||||
{ "Distribution", bus_property_append_string, "s", sizeof(PACKAGE_STRING) },
|
||||
{ "Features", bus_property_append_string, "s", sizeof(PACKAGE_STRING) + sizeof(DISTRIBUTION) },
|
||||
{ "Version", bus_property_append_string, "s", 0 },
|
||||
{ "Features", bus_property_append_string, "s", sizeof(PACKAGE_STRING) },
|
||||
{ NULL, }
|
||||
};
|
||||
|
||||
|
||||
+2
-3
@@ -1064,7 +1064,6 @@ static int help(void) {
|
||||
|
||||
static int version(void) {
|
||||
puts(PACKAGE_STRING);
|
||||
puts(DISTRIBUTION);
|
||||
puts(SYSTEMD_FEATURES);
|
||||
|
||||
return 0;
|
||||
@@ -1567,7 +1566,7 @@ int main(int argc, char *argv[]) {
|
||||
if (arg_running_as == SYSTEMD_SYSTEM) {
|
||||
const char *virtualization = NULL;
|
||||
|
||||
log_info(PACKAGE_STRING " running in system mode. (" SYSTEMD_FEATURES "; " DISTRIBUTION ")");
|
||||
log_info(PACKAGE_STRING " running in system mode. (" SYSTEMD_FEATURES ")");
|
||||
|
||||
detect_virtualization(&virtualization);
|
||||
if (virtualization)
|
||||
@@ -1577,7 +1576,7 @@ int main(int argc, char *argv[]) {
|
||||
log_info("Running in initial RAM disk.");
|
||||
|
||||
} else
|
||||
log_debug(PACKAGE_STRING " running in user mode. (" SYSTEMD_FEATURES "; " DISTRIBUTION ")");
|
||||
log_debug(PACKAGE_STRING " running in user mode. (" SYSTEMD_FEATURES ")");
|
||||
|
||||
if (arg_running_as == SYSTEMD_SYSTEM && !skip_setup) {
|
||||
locale_setup();
|
||||
|
||||
Reference in New Issue
Block a user