1
0
mirror of https://github.com/systemd/systemd synced 2026-03-15 01:24:51 +01:00

Compare commits

..

No commits in common. "fd37987da5f11ee9d488cd525d48c3d85c983b47" and "cbec0bfa5dba8f51d9d17211c00af9e01b09f005" have entirely different histories.

9 changed files with 20 additions and 41 deletions

View File

@ -911,10 +911,6 @@ evdev:input:b0003v04B3p301B*
KEYBOARD_KEY_90007=mail KEYBOARD_KEY_90007=mail
KEYBOARD_KEY_90008=www KEYBOARD_KEY_90008=www
# Lenovo Ideapad D330-10IGM
evdev:name:SIPODEV Lenovo HID Device:dmi:*:svnLENOVO:*:pvrLenovoideapadD330-10IGM:*
KEYBOARD_KEY_70073=f21 # Fn+Supr (Touchpad toggle)
########################################################### ###########################################################
# Logitech # Logitech

View File

@ -506,8 +506,8 @@ sensor:modalias:acpi:BMA250E*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-1030:*
sensor:modalias:acpi:SMO8500*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-830:* sensor:modalias:acpi:SMO8500*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-830:*
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
# IdeaPad D330-10IGM (both 81H3 and 81MD product names) # IdeaPad D330-10IGM (both 81H3 and 81MD product numbers)
sensor:modalias:acpi:BOSC0200*:dmi:*:svnLENOVO:*:pvrLenovoideapadD330-10IGM:* sensor:modalias:acpi:BOSC0200*:dmi:*:svnLENOVO:*:cvrLenovoideapadD330-10IGM:*
ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1 ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1
# IdeaPad Miix 300 # IdeaPad Miix 300

View File

@ -239,25 +239,15 @@
<varlistentry> <varlistentry>
<term><option>--make-machine-id-directory=yes|no|auto</option></term> <term><option>--make-machine-id-directory=yes|no|auto</option></term>
<listitem><para>Control creation and deletion of the top-level machine ID directory on the file <listitem><para>Control creation and deletion of <literal>$ESP/$MACHINE_ID</literal> during
system containing boot loader entries (i.e. beneath the file system returned by <option>install</option> and <option>remove</option>, respectively.
<command>--print-boot-path</command> above) during <option>install</option> and <literal>auto</literal> is equivalent to to <literal>yes</literal> if <literal>/etc/machine-id</literal>
<option>remove</option>, respectively. <literal>auto</literal> is equivalent to resides on a filesystem other than tmpfs and <literal>no</literal> otherwise.
<literal>yes</literal> if <filename>/etc/machine-id</filename> resides on a filesystem other than Defaults to <literal>auto</literal>.</para>
tmpfs and <literal>no</literal> otherwise (in the latter case the machine ID is likely transient and
hence should not be used persistently in the ESP). Defaults to <literal>auto</literal>. See
<citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry> for
details about the machine ID concept and file.</para>
<para>Overriding this may be desirable to hide the machine ID from the (unencrypted) ESP, configure a <para>Overriding this may be desired to hide the machine ID from the (unencrypted) ESP,
<citerefentry><refentrytitle>kernel-install</refentrytitle><manvolnum>8</manvolnum></citerefentry> configure a <citerefentry><refentrytitle>kernel-install</refentrytitle><manvolnum>8</manvolnum></citerefentry> script, or,
script, or, conversely, commit a transient machine ID.</para> conversely, commit a machine-id that only appears transient.</para></listitem>
<para>The top-level machine ID directory is useful to allow smooth multi-boot installations: each
installed OS instance will have a different machine ID and thus a separate directory to place its
boot-time resources in. If this feature is turned off with this option, care needs to be taken that
multiple OS instances do not place conflicting files on the shared ESP and Extended Boot Loader
Partitions, or that multiple OS instances are not possible.</para></listitem>
</varlistentry> </varlistentry>
<xi:include href="standard-options.xml" xpointer="no-pager"/> <xi:include href="standard-options.xml" xpointer="no-pager"/>

View File

@ -3,7 +3,6 @@
#include <stdbool.h> #include <stdbool.h>
#include "errno-list.h"
#include "locale-util.h" #include "locale-util.h"
#include "macro.h" #include "macro.h"
@ -24,7 +23,6 @@ typedef enum UnitType {
UNIT_SCOPE, UNIT_SCOPE,
_UNIT_TYPE_MAX, _UNIT_TYPE_MAX,
_UNIT_TYPE_INVALID = -EINVAL, _UNIT_TYPE_INVALID = -EINVAL,
_UNIT_TYPE_ERRNO_MAX = -ERRNO_MAX, /* Ensure the whole errno range fits into this enum */
} UnitType; } UnitType;
typedef enum UnitLoadState { typedef enum UnitLoadState {

View File

@ -747,14 +747,11 @@ static int attach_luks_or_plain_or_bitlk_by_fido2(
if (arg_fido2_cid) { if (arg_fido2_cid) {
if (!key_file && !key_data) if (!key_file && !key_data)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "FIDO2 mode selected but no key file specified, refusing.");
"FIDO2 mode with manual parameters selected, but no keyfile specified, refusing.");
rp_id = arg_fido2_rp_id; rp_id = arg_fido2_rp_id;
cid = arg_fido2_cid; cid = arg_fido2_cid;
cid_size = arg_fido2_cid_size; cid_size = arg_fido2_cid_size;
required = FIDO2ENROLL_PIN | FIDO2ENROLL_UP; /* For backwards compatibility, PIN+presence is required by default. */
} else { } else {
r = find_fido2_auto_data( r = find_fido2_auto_data(
cd, cd,
@ -772,7 +769,7 @@ static int attach_luks_or_plain_or_bitlk_by_fido2(
if (r < 0) if (r < 0)
return r; return r;
if ((required & (FIDO2ENROLL_PIN | FIDO2ENROLL_UP | FIDO2ENROLL_UV)) && arg_headless) if (FLAGS_SET(required, FIDO2ENROLL_PIN | FIDO2ENROLL_UP | FIDO2ENROLL_UV) && arg_headless)
return log_error_errno(SYNTHETIC_ERRNO(ENOPKG), return log_error_errno(SYNTHETIC_ERRNO(ENOPKG),
"Local verification is required to unlock this volume, but the 'headless' parameter was set."); "Local verification is required to unlock this volume, but the 'headless' parameter was set.");

View File

@ -379,9 +379,7 @@ static void test_make_salt(void) {
static void test_in_gid(void) { static void test_in_gid(void) {
assert(in_gid(getgid()) >= 0); assert(in_gid(getgid()) >= 0);
assert(in_gid(getegid()) >= 0); assert(in_gid(getegid()) >= 0); assert(in_gid(TTY_GID) == 0); /* The TTY gid is for owning ttys, it would be really really weird if we were in it. */
assert(in_gid(GID_INVALID) < 0);
assert(in_gid(TTY_GID) == 0); /* The TTY gid is for owning ttys, it would be really really weird if we were in it. */
} }
static void test_gid_lists_ops(void) { static void test_gid_lists_ops(void) {