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:
Daan De Meyer 2024-05-08 11:41:04 +02:00
parent 677430b3c7
commit 65690de6f9
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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