Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions hwdb.d/60-keyboard.hwdb
Original file line number Diff line number Diff line change
Expand Up @@ -1438,10 +1438,15 @@ evdev:input:b0003v046DpC309*
KEYBOARD_KEY_c01b6=images # My Pictures (F11)
KEYBOARD_KEY_c01b7=audio # My Music (F12)

# The wireless receiver b0003v046Dp4092* seems to be used by multiple models.
# See issue #35691. Hence, the entry below cannot be enabled by default. If
# you're using the model below, consider copying the entry to a custom hwdb
# file to enable the setting.
#
# Logitech MX Keys for Mac
evdev:input:b0003v046Dp4092*
KEYBOARD_KEY_70035=102nd # '<' key
KEYBOARD_KEY_70064=grave # '^' key
#evdev:input:b0003v046Dp4092*
# KEYBOARD_KEY_70035=102nd # '<' key
# KEYBOARD_KEY_70064=grave # '^' key

###########################################################
# Maxdata
Expand Down
1 change: 1 addition & 0 deletions mkosi.default.d/debian/10-mkosi.debian
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Packages=
isc-dhcp-server
libbpf1
libfido2-1
libgcrypt20
libglib2.0-0
libgnutls30
libidn2-0
Expand Down
2 changes: 1 addition & 1 deletion src/core/dbus-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -2643,7 +2643,7 @@ static int method_add_dependency_unit_files(sd_bus_message *message, void *userd
flags = unit_file_bools_to_flags(runtime, force);

dep = unit_dependency_from_string(type);
if (dep < 0)
if (dep < 0 || !IN_SET(dep, UNIT_WANTS, UNIT_REQUIRES))
return -EINVAL;

r = unit_file_add_dependency(m->unit_file_scope, flags, NULL, l, target, dep, &changes, &n_changes);
Expand Down
4 changes: 3 additions & 1 deletion src/core/unit-serialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ static int serialize_markers(FILE *f, unsigned markers) {
if (markers == 0)
return 0;

bool space = false;

fputs("markers=", f);
for (UnitMarker m = 0; m < _UNIT_MARKER_MAX; m++)
if (FLAGS_SET(markers, 1u << m))
fputs(unit_marker_to_string(m), f);
fputs_with_space(f, unit_marker_to_string(m), /* separator = */ NULL, &space);
fputc('\n', f);
return 0;
}
Expand Down
6 changes: 3 additions & 3 deletions src/stdio-bridge/stdio-bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ static int run(int argc, char *argv[]) {
t = usec_sub_unsigned(MIN(timeout_a, timeout_b), now(CLOCK_MONOTONIC));

struct pollfd p[3] = {
{ .fd = fd, .events = events_a },
{ .fd = STDIN_FILENO, .events = events_b & POLLIN },
{ .fd = STDOUT_FILENO, .events = events_b & POLLOUT },
{ .fd = fd, .events = events_a },
{ .fd = in_fd, .events = events_b & POLLIN },
{ .fd = out_fd, .events = events_b & POLLOUT },
};

r = ppoll_usec(p, ELEMENTSOF(p), t);
Expand Down
8 changes: 4 additions & 4 deletions test/units/testsuite-64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ testcase_mdadm_basic() {
"/dev/disk/by-label/$part_name" # ext4 partition
)
# Create a simple RAID 1 with an ext4 filesystem
echo y | mdadm --create "$raid_dev" --name "$raid_name" --uuid "$uuid" /dev/disk/by-id/ata-foobar_deadbeefmdadm{0..1} -v -f --level=1 --raid-devices=2
printf 'y\ny\n' | mdadm --create "$raid_dev" --name "$raid_name" --uuid "$uuid" /dev/disk/by-id/ata-foobar_deadbeefmdadm{0..1} -v -f --level=1 --raid-devices=2
udevadm wait --settle --timeout=30 "$raid_dev"
mkfs.ext4 -L "$part_name" "$raid_dev"
udevadm wait --settle --timeout=30 "${expected_symlinks[@]}"
Expand Down Expand Up @@ -861,7 +861,7 @@ testcase_mdadm_basic() {
"/dev/disk/by-label/$part_name" # ext4 partition
)
# Create a simple RAID 5 with an ext4 filesystem
echo y | mdadm --create "$raid_dev" --name "$raid_name" --uuid "$uuid" /dev/disk/by-id/ata-foobar_deadbeefmdadm{0..2} -v -f --level=5 --raid-devices=3
printf 'y\ny\n' | mdadm --create "$raid_dev" --name "$raid_name" --uuid "$uuid" /dev/disk/by-id/ata-foobar_deadbeefmdadm{0..2} -v -f --level=5 --raid-devices=3
udevadm wait --settle --timeout=30 "$raid_dev"
mkfs.ext4 -L "$part_name" "$raid_dev"
udevadm wait --settle --timeout=30 "${expected_symlinks[@]}"
Expand Down Expand Up @@ -901,7 +901,7 @@ testcase_mdadm_basic() {
"/dev/disk/by-id/md-uuid-$uuid-part3"
)
# Create a simple RAID 10 with an ext4 filesystem
echo y | mdadm --create "$raid_dev" --name "$raid_name" --uuid "$uuid" /dev/disk/by-id/ata-foobar_deadbeefmdadm{0..3} -v -f --level=10 --raid-devices=4
printf 'y\ny\n' | mdadm --create "$raid_dev" --name "$raid_name" --uuid "$uuid" /dev/disk/by-id/ata-foobar_deadbeefmdadm{0..3} -v -f --level=10 --raid-devices=4
udevadm wait --settle --timeout=30 "$raid_dev"
# Partition the raid device
# Here, 'udevadm lock' is meaningless, as udevd does not lock MD devices.
Expand Down Expand Up @@ -954,7 +954,7 @@ testcase_mdadm_lvm() {
"/dev/disk/by-label/$part_name" # ext4 partition
)
# Create a RAID 10 with LVM + ext4
echo y | mdadm --create "$raid_dev" --name "$raid_name" --uuid "$uuid" /dev/disk/by-id/ata-foobar_deadbeefmdadmlvm{0..3} -v -f --level=10 --raid-devices=4
printf 'y\ny\n' | mdadm --create "$raid_dev" --name "$raid_name" --uuid "$uuid" /dev/disk/by-id/ata-foobar_deadbeefmdadmlvm{0..3} -v -f --level=10 --raid-devices=4
udevadm wait --settle --timeout=30 "$raid_dev"
# Create an LVM on the MD
lvm pvcreate -y "$raid_dev"
Expand Down
Loading