mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
TEST-81-GENERATORS: Do a lazy unmounts
Otherwise we might fail if PID 1 is currently accessing these files. Fixes #32692 (hopefully)
This commit is contained in:
parent
677430b3c7
commit
65690de6f9
@ -72,7 +72,7 @@ run_and_list() {
|
||||
ls -lR "$out_dir"
|
||||
|
||||
if [[ -n "${environ:-}" ]]; then
|
||||
umount /proc/1/environ
|
||||
umount /proc/1/environ --lazy
|
||||
rm -f "$environ"
|
||||
fi
|
||||
}
|
||||
|
@ -85,5 +85,5 @@ PID1_ENVIRON="SYSTEMD_GETTY_AUTO=0" run_and_list "$GENERATOR_BIN" "$OUT_DIR"
|
||||
[[ "$(find "$OUT_DIR" ! -type d | wc -l)" -eq 0 ]]
|
||||
|
||||
# Cleanup
|
||||
umount /sys/class/tty/console/active
|
||||
umount /sys/class/tty/console/active --lazy
|
||||
rm -f "${DUMMY_CONSOLES[@]/#//dev/}" /dev/notatty99
|
||||
|
Loading…
Reference in New Issue
Block a user