Compare commits
5 Commits
13b6c4c8de
...
f27bb6abd3
Author | SHA1 | Date |
---|---|---|
Dimitri John Ledkov | f27bb6abd3 | |
cvoinf | 3d864658ea | |
Lennart Poettering | 35a05d8d5e | |
Lennart Poettering | 76b73ce21c | |
Lennart Poettering | 601f91bec5 |
|
@ -436,27 +436,16 @@ sensor:modalias:acpi:SMO8500*:dmi:*:svnMEDION:pnAkoyaE2212TMD99720:*
|
|||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
|
||||
|
||||
# Medion Akoya E2215T MD60198
|
||||
sensor:modalias:acpi:KIOX000A*:dmi:*svnMEDION:pnE2215TMD60198:*
|
||||
ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
|
||||
|
||||
# Medion Akoya E3216 MD60900
|
||||
sensor:modalias:acpi:KIOX010A*:dmi:*:svnMEDION*:pnE3216*:*
|
||||
ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
|
||||
|
||||
# Medion Akoya E3221 MD61237
|
||||
sensor:modalias:acpi:KIOX010A*:dmi:*:svnMEDION:pnE3221MD61237:*
|
||||
ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
|
||||
|
||||
# Medion Akoya E3222 MD62450
|
||||
sensor:modalias:acpi:KIOX010A*:dmi:*:svnMEDION*:pnE3222*:*
|
||||
ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
|
||||
|
||||
# Medion Akoya E2292 MD63390
|
||||
sensor:modalias:acpi:KIOX010A*:dmi:*:svnMEDION:pnE2292MD63390:*
|
||||
ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
|
||||
|
||||
# Medion Akoya E2293 MD61130
|
||||
sensor:modalias:acpi:KIOX010A*:dmi:*:svnMEDION:pnE2293MD61130:*
|
||||
# Medion Akoya E2293 MD61144
|
||||
# Medion Akoya E3222 MD62450
|
||||
# and presumably all other Akoya Exxxx
|
||||
sensor:modalias:acpi:KIOX010A*:dmi:*:svnMEDION:pnE*:*
|
||||
# Medion Akoya E3222
|
||||
sensor:modalias:acpi:KIOX010A*:dmi:*:svnMEDION:pnMEDION*:*
|
||||
ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
|
||||
|
||||
#########################################
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
<citerefentry project='man-pages'><refentrytitle>ext4</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
btrfs (see
|
||||
<citerefentry project='man-pages'><refentrytitle>btrfs-man5</refentrytitle><manvolnum>5</manvolnum></citerefentry>),
|
||||
<citerefentry project='man-pages'><refentrytitle>xfs</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
<!-- yes, that's what the man page is called. -->
|
||||
and dm-crypt partitions (see
|
||||
<citerefentry project='die-net'><refentrytitle>cryptsetup</refentrytitle><manvolnum>8</manvolnum></citerefentry>).
|
||||
|
|
|
@ -1500,8 +1500,29 @@ int time_change_fd(void) {
|
|||
if (fd < 0)
|
||||
return -errno;
|
||||
|
||||
if (timerfd_settime(fd, TFD_TIMER_ABSTIME|TFD_TIMER_CANCEL_ON_SET, &its, NULL) < 0)
|
||||
return -errno;
|
||||
|
||||
if (timerfd_settime(fd, TFD_TIMER_ABSTIME|TFD_TIMER_CANCEL_ON_SET, &its, NULL) >= 0)
|
||||
return TAKE_FD(fd);
|
||||
|
||||
/* So apparently there are systems where time_t is 64bit, but the kernel actually doesn't support
|
||||
* 64bit time_t. In that case configuring a timer to TIME_T_MAX will fail with EOPNOTSUPP or a
|
||||
* similar error. If that's the case let's try with INT32_MAX instead, maybe that works. It's a bit
|
||||
* of a black magic thing though, but what can we do?
|
||||
*
|
||||
* We don't want this code on x86-64, hence let's conditionalize this for systems with 64bit time_t
|
||||
* but where "long" is shorter than 64bit, i.e. 32bit archs.
|
||||
*
|
||||
* See: https://github.com/systemd/systemd/issues/14362 */
|
||||
|
||||
#if SIZEOF_TIME_T == 8 && ULONG_MAX < UINT64_MAX
|
||||
if (ERRNO_IS_NOT_SUPPORTED(errno)) {
|
||||
static const struct itimerspec its32 = {
|
||||
.it_value.tv_sec = INT32_MAX,
|
||||
};
|
||||
|
||||
if (timerfd_settime(fd, TFD_TIMER_ABSTIME|TFD_TIMER_CANCEL_ON_SET, &its32, NULL) >= 0)
|
||||
return TAKE_FD(fd);
|
||||
}
|
||||
#endif
|
||||
|
||||
return -errno;
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
Description=Cleanup udevd DB
|
||||
DefaultDependencies=no
|
||||
ConditionPathExists=/etc/initrd-release
|
||||
Conflicts=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket
|
||||
After=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket
|
||||
Conflicts=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udev-trigger.service systemd-udev-settle.service
|
||||
After=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udev-trigger.service systemd-udev-settle.service
|
||||
Before=initrd-switch-root.target
|
||||
|
||||
[Service]
|
||||
|
|
Loading…
Reference in New Issue