mirror of
https://github.com/systemd/systemd
synced 2025-10-03 10:44:44 +02:00
Compare commits
5 Commits
41c14f9d43
...
5e38d199a6
Author | SHA1 | Date | |
---|---|---|---|
![]() |
5e38d199a6 | ||
![]() |
b6ca95740d | ||
![]() |
2989595155 | ||
![]() |
08b9cf43ea | ||
![]() |
7d5b7f234f |
@ -1 +1 @@
|
|||||||
257.7
|
257.8
|
||||||
|
@ -41,5 +41,12 @@ for unit_file in "${UNIT_FILES[@]}"; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Skip masked unit files
|
||||||
|
resolved=$(readlink -f "$unit_file")
|
||||||
|
if [[ "$resolved" == "/dev/null" || "$(systemctl is-enabled "${resolved##*/}" 2>/dev/null || :)" == "masked" ]]; then
|
||||||
|
echo "$unit_file is masked, skipping"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
systemd-analyze --recursive-errors=no --man=no verify "$unit_file"
|
systemd-analyze --recursive-errors=no --man=no verify "$unit_file"
|
||||||
done
|
done
|
||||||
|
@ -1259,7 +1259,9 @@ EOF
|
|||||||
|
|
||||||
# Clear superblocks to make the MD device will not be restarted even if the VM is restarted.
|
# Clear superblocks to make the MD device will not be restarted even if the VM is restarted.
|
||||||
# This is a workaround for issue #38240.
|
# This is a workaround for issue #38240.
|
||||||
mdadm -v --zero-superblock --force "${devices[@]}"
|
udevadm settle --timeout=30
|
||||||
|
# shellcheck disable=SC2046
|
||||||
|
mdadm -v --zero-superblock --force $(readlink -f "${devices[@]}")
|
||||||
udevadm settle --timeout=30
|
udevadm settle --timeout=30
|
||||||
|
|
||||||
# Check if all expected symlinks were removed after the cleanup
|
# Check if all expected symlinks were removed after the cleanup
|
||||||
@ -1322,7 +1324,9 @@ testcase_mdadm_lvm() {
|
|||||||
|
|
||||||
# Clear superblocks to make the MD device will not be restarted even if the VM is restarted.
|
# Clear superblocks to make the MD device will not be restarted even if the VM is restarted.
|
||||||
# This is a workaround for issue #38240.
|
# This is a workaround for issue #38240.
|
||||||
mdadm -v --zero-superblock --force "${devices[@]}"
|
udevadm settle --timeout=30
|
||||||
|
# shellcheck disable=SC2046
|
||||||
|
mdadm -v --zero-superblock --force $(readlink -f "${devices[@]}")
|
||||||
udevadm settle --timeout=30
|
udevadm settle --timeout=30
|
||||||
|
|
||||||
# Check if all expected symlinks were removed after the cleanup
|
# Check if all expected symlinks were removed after the cleanup
|
||||||
|
@ -280,4 +280,4 @@ if [[ -e /usr/lib/pam.d/systemd-run0 ]] || [[ -e /etc/pam.d/systemd-run0 ]]; the
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Tests whether intermediate disconnects corrupt us (modified testcase from https://github.com/systemd/systemd/issues/27204)
|
# Tests whether intermediate disconnects corrupt us (modified testcase from https://github.com/systemd/systemd/issues/27204)
|
||||||
assert_rc "37" systemd-run --unit=disconnecttest --wait --pipe --user -M testuser@.host bash -ec 'systemctl --user daemon-reexec; sleep 3; exit 37'
|
assert_rc "37" timeout 300 systemd-run --unit=disconnecttest --wait --pipe --user -M testuser@.host bash -ec 'systemctl --user daemon-reexec; sleep 3; exit 37'
|
||||||
|
@ -20,7 +20,7 @@ ConditionPathExists=/proc/pressure/cpu
|
|||||||
ConditionPathExists=/proc/pressure/io
|
ConditionPathExists=/proc/pressure/io
|
||||||
ConditionPathExists=/proc/pressure/memory
|
ConditionPathExists=/proc/pressure/memory
|
||||||
Requires=systemd-oomd.socket
|
Requires=systemd-oomd.socket
|
||||||
After=systemd-oomd.socket
|
After=systemd-oomd.socket systemd-sysusers.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
AmbientCapabilities=CAP_KILL CAP_DAC_OVERRIDE
|
AmbientCapabilities=CAP_KILL CAP_DAC_OVERRIDE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user