Compare commits
No commits in common. "7283fbfd0c46819fea9f0a20671eaef99b3993e5" and "209b2592ed5883bdfc7a0f2e5b7277c5c4fe834e" have entirely different histories.
7283fbfd0c
...
209b2592ed
|
@ -60,15 +60,13 @@
|
||||||
device or file, or a specification of a block device via
|
device or file, or a specification of a block device via
|
||||||
<literal>UUID=</literal> followed by the UUID.</para>
|
<literal>UUID=</literal> followed by the UUID.</para>
|
||||||
|
|
||||||
<para>The third field specifies an absolute path to a file to read the encryption key from. Optionally,
|
<para>The third field specifies an absolute path to a file to read the encryption key from. If the field
|
||||||
the path may be followed by <literal>:</literal> and an fstab device specification (e.g. starting with
|
is not present or set to <literal>none</literal> or <literal>-</literal>, a key file named after the
|
||||||
<literal>LABEL=</literal> or similar); in which case, the path is relative to the device file system
|
volume to unlock (i.e. the first column of the line), suffixed with <filename>.key</filename> is
|
||||||
root. If the field is not present or set to <literal>none</literal> or <literal>-</literal>, a key file
|
automatically loaded from the <filename>/etc/cryptsetup-keys.d/</filename> and
|
||||||
named after the volume to unlock (i.e. the first column of the line), suffixed with
|
<filename>/run/cryptsetup-keys.d/</filename> directories, if present. Otherwise, the password has to be
|
||||||
<filename>.key</filename> is automatically loaded from the <filename>/etc/cryptsetup-keys.d/</filename>
|
manually entered during system boot. For swap encryption, <filename>/dev/urandom</filename> may be used
|
||||||
and <filename>/run/cryptsetup-keys.d/</filename> directories, if present. Otherwise, the password has to
|
as key file.</para>
|
||||||
be manually entered during system boot. For swap encryption, <filename>/dev/urandom</filename> may be
|
|
||||||
used as key file.</para>
|
|
||||||
|
|
||||||
<para>The fourth field, if present, is a comma-delimited list of
|
<para>The fourth field, if present, is a comma-delimited list of
|
||||||
options. The following options are recognized:</para>
|
options. The following options are recognized:</para>
|
||||||
|
|
|
@ -121,16 +121,14 @@ int proc_cmdline_parse(proc_cmdline_parse_t parse_item, void *data, ProcCmdlineF
|
||||||
|
|
||||||
if (!FLAGS_SET(flags, PROC_CMDLINE_IGNORE_EFI_OPTIONS)) {
|
if (!FLAGS_SET(flags, PROC_CMDLINE_IGNORE_EFI_OPTIONS)) {
|
||||||
r = systemd_efi_options_variable(&line);
|
r = systemd_efi_options_variable(&line);
|
||||||
if (r < 0) {
|
if (r < 0 && r != -ENODATA)
|
||||||
if (r != -ENODATA)
|
log_debug_errno(r, "Failed to get SystemdOptions EFI variable, ignoring: %m");
|
||||||
log_debug_errno(r, "Failed to get SystemdOptions EFI variable, ignoring: %m");
|
|
||||||
} else {
|
|
||||||
r = proc_cmdline_parse_given(line, parse_item, data, flags);
|
|
||||||
if (r < 0)
|
|
||||||
return r;
|
|
||||||
|
|
||||||
line = mfree(line);
|
r = proc_cmdline_parse_given(line, parse_item, data, flags);
|
||||||
}
|
if (r < 0)
|
||||||
|
return r;
|
||||||
|
|
||||||
|
line = mfree(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
r = proc_cmdline(&line);
|
r = proc_cmdline(&line);
|
||||||
|
|
|
@ -166,8 +166,7 @@ int network_verify(Network *network) {
|
||||||
if (set_isempty(network->match_mac) && set_isempty(network->match_permanent_mac) &&
|
if (set_isempty(network->match_mac) && set_isempty(network->match_permanent_mac) &&
|
||||||
strv_isempty(network->match_path) && strv_isempty(network->match_driver) &&
|
strv_isempty(network->match_path) && strv_isempty(network->match_driver) &&
|
||||||
strv_isempty(network->match_type) && strv_isempty(network->match_name) &&
|
strv_isempty(network->match_type) && strv_isempty(network->match_name) &&
|
||||||
strv_isempty(network->match_property) && strv_isempty(network->match_wlan_iftype) &&
|
strv_isempty(network->match_property) && strv_isempty(network->match_ssid) && !network->conditions)
|
||||||
strv_isempty(network->match_ssid) && !network->conditions)
|
|
||||||
return log_warning_errno(SYNTHETIC_ERRNO(EINVAL),
|
return log_warning_errno(SYNTHETIC_ERRNO(EINVAL),
|
||||||
"%s: No valid settings found in the [Match] section, ignoring file. "
|
"%s: No valid settings found in the [Match] section, ignoring file. "
|
||||||
"To match all interfaces, add Name=* in the [Match] section.",
|
"To match all interfaces, add Name=* in the [Match] section.",
|
||||||
|
|
|
@ -422,7 +422,6 @@ DnsServerFeatureLevel dns_server_possible_feature_level(DnsServer *s) {
|
||||||
s->possible_feature_level = s->verified_feature_level;
|
s->possible_feature_level = s->verified_feature_level;
|
||||||
else {
|
else {
|
||||||
DnsServerFeatureLevel p = s->possible_feature_level;
|
DnsServerFeatureLevel p = s->possible_feature_level;
|
||||||
int log_level = LOG_WARNING;
|
|
||||||
|
|
||||||
if (s->n_failed_tcp >= DNS_SERVER_FEATURE_RETRY_ATTEMPTS &&
|
if (s->n_failed_tcp >= DNS_SERVER_FEATURE_RETRY_ATTEMPTS &&
|
||||||
s->possible_feature_level == DNS_SERVER_FEATURE_LEVEL_TCP) {
|
s->possible_feature_level == DNS_SERVER_FEATURE_LEVEL_TCP) {
|
||||||
|
@ -450,10 +449,6 @@ DnsServerFeatureLevel dns_server_possible_feature_level(DnsServer *s) {
|
||||||
log_debug("Server doesn't support EDNS(0) properly, downgrading feature level...");
|
log_debug("Server doesn't support EDNS(0) properly, downgrading feature level...");
|
||||||
s->possible_feature_level = DNS_SERVER_FEATURE_LEVEL_UDP;
|
s->possible_feature_level = DNS_SERVER_FEATURE_LEVEL_UDP;
|
||||||
|
|
||||||
/* Users often don't control the DNS server they use so let's not complain too loudly
|
|
||||||
* when we can't use EDNS because the DNS server doesn't support it. */
|
|
||||||
log_level = LOG_NOTICE;
|
|
||||||
|
|
||||||
} else if (s->packet_rrsig_missing &&
|
} else if (s->packet_rrsig_missing &&
|
||||||
s->possible_feature_level >= DNS_SERVER_FEATURE_LEVEL_DO) {
|
s->possible_feature_level >= DNS_SERVER_FEATURE_LEVEL_DO) {
|
||||||
|
|
||||||
|
@ -498,9 +493,9 @@ DnsServerFeatureLevel dns_server_possible_feature_level(DnsServer *s) {
|
||||||
/* We changed the feature level, reset the counting */
|
/* We changed the feature level, reset the counting */
|
||||||
dns_server_reset_counters(s);
|
dns_server_reset_counters(s);
|
||||||
|
|
||||||
log_full(log_level, "Using degraded feature set %s instead of %s for DNS server %s.",
|
log_warning("Using degraded feature set (%s) for DNS server %s.",
|
||||||
dns_server_feature_level_to_string(s->possible_feature_level),
|
dns_server_feature_level_to_string(s->possible_feature_level),
|
||||||
dns_server_feature_level_to_string(p), dns_server_string(s));
|
dns_server_string(s));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9053,7 +9053,6 @@ static int logind_schedule_shutdown(void) {
|
||||||
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
|
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||||
char date[FORMAT_TIMESTAMP_MAX];
|
char date[FORMAT_TIMESTAMP_MAX];
|
||||||
const char *action;
|
const char *action;
|
||||||
const char *log_action;
|
|
||||||
sd_bus *bus;
|
sd_bus *bus;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
@ -9064,24 +9063,19 @@ static int logind_schedule_shutdown(void) {
|
||||||
switch (arg_action) {
|
switch (arg_action) {
|
||||||
case ACTION_HALT:
|
case ACTION_HALT:
|
||||||
action = "halt";
|
action = "halt";
|
||||||
log_action = "Shutdown";
|
|
||||||
break;
|
break;
|
||||||
case ACTION_POWEROFF:
|
case ACTION_POWEROFF:
|
||||||
action = "poweroff";
|
action = "poweroff";
|
||||||
log_action = "Shutdown";
|
|
||||||
break;
|
break;
|
||||||
case ACTION_KEXEC:
|
case ACTION_KEXEC:
|
||||||
action = "kexec";
|
action = "kexec";
|
||||||
log_action = "Reboot via kexec";
|
|
||||||
break;
|
break;
|
||||||
case ACTION_EXIT:
|
case ACTION_EXIT:
|
||||||
action = "exit";
|
action = "exit";
|
||||||
log_action = "Shutdown";
|
|
||||||
break;
|
break;
|
||||||
case ACTION_REBOOT:
|
case ACTION_REBOOT:
|
||||||
default:
|
default:
|
||||||
action = "reboot";
|
action = "reboot";
|
||||||
log_action = "Reboot";
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9095,7 +9089,7 @@ static int logind_schedule_shutdown(void) {
|
||||||
return log_warning_errno(r, "Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: %s", bus_error_message(&error, r));
|
return log_warning_errno(r, "Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: %s", bus_error_message(&error, r));
|
||||||
|
|
||||||
if (!arg_quiet)
|
if (!arg_quiet)
|
||||||
log_info("%s scheduled for %s, use 'shutdown -c' to cancel.", log_action, format_timestamp(date, sizeof(date), arg_when));
|
log_info("Shutdown scheduled for %s, use 'shutdown -c' to cancel.", format_timestamp(date, sizeof(date), arg_when));
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
return log_error_errno(SYNTHETIC_ERRNO(ENOSYS),
|
return log_error_errno(SYNTHETIC_ERRNO(ENOSYS),
|
||||||
|
|
Loading…
Reference in New Issue