1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-21 13:58:00 +03:00
Thomas Blume 9cd2f2c31f test: use setpriv instead of su for user switch from root
systemd-repart needs to find mkfs.ext4 for the test.
This is located in the directory /usr/sbin on openSUSE Tumbleweed.
But since the variable ALWAYS_SET_PATH in /etc/login.defs is set to yes,
su re-initializes the $PATH variable and removes /usr/sbin.
Hence, mkfs.ext4 is not found and the test fails.
Using setpriv instead of su fixes this issue and is more appropriate to
do the switch user task from root.

[zjs: move setpriv to $BASICTOOLS and force-push to retrigger CI]

(cherry picked from commit c7bf1959d7580e1b7e918b75f852b3bf3fb6eb3c)
(cherry picked from commit 43d194392fd36151c339fa7a1a9eebe30490bddb)
2023-04-28 16:29:56 +01:00
..
2022-11-04 23:31:28 +00:00
2023-03-30 18:56:36 +02:00
2021-11-08 10:15:23 +01:00
2022-08-23 10:53:47 +02:00
2022-08-23 10:53:47 +02:00