dongshengyuan
3121e14658
journalctl: use root machine ID for namespaces
journalctl --root=... --list-namespaces scans the target root's
journal tree, but used the host machine ID when matching namespace
directories.
Reproducer:
root="$(mktemp -d)"
mid=11111111111111111111111111111111
mkdir -p "$root/etc" "$root/var/log/journal/$mid.testns"
printf '%s\n' "$mid" >"$root/etc/machine-id"
journalctl --root="$root" --list-namespaces --quiet
Before:
no output
Follow-up for: 68f66a1713.
2026-07-16 01:26:46 +09:00
..
2026-07-16 01:23:40 +09:00
2026-07-10 14:01:24 +02:00
2025-12-07 09:10:32 +09:00
2026-06-03 20:21:54 +01:00
2026-04-20 09:37:13 +02:00
2026-07-16 01:23:40 +09:00
2025-12-20 18:31:55 +01:00
2026-07-16 01:26:46 +09:00
2026-05-18 02:44:46 +09:00
2026-07-10 16:35:19 +09:00
2026-05-18 02:44:46 +09:00
2026-05-18 02:44:46 +09:00
2026-05-18 02:44:46 +09:00
2026-05-18 02:44:46 +09:00
2026-05-18 02:44:46 +09:00
2025-11-17 16:50:50 +01:00
2026-07-12 23:31:29 +02:00
2026-05-24 14:12:50 +01:00
2026-06-20 01:41:46 +01:00
2026-06-21 18:20:53 +01:00
2025-11-14 03:29:21 +09:00
2026-05-18 02:44:46 +09:00
2026-01-21 12:03:07 +01:00