]> git.ipfire.org Git - thirdparty/systemd.git/commit
discover-image: restore compatibility with C9S and overlayfs directories
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 9 Feb 2026 19:19:27 +0000 (19:19 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 9 Feb 2026 19:39:51 +0000 (19:39 +0000)
commitcd45d803c3519fedcf80eeb7e55e0ba0c61baeeb
tree3ae45a346b721b5080d53f8f6fb3b452a0395538
parent14519d7dfa806a1d2d999e4c88037f3ce6a84c08
discover-image: restore compatibility with C9S and overlayfs directories

5817c73391b5f3599c50df2c0873b26ea426f848 broke compatibility with
CentOS 9 and overlayfs directories, the following fails with -EOPTNOTSUPP:

mount -t overlay overlay -o lowerdir=/tmp/app1:/tmp/rootdir /tmp/overlay
portablectl attach --copy=symlink --now --runtime /tmp/overlay app1

name_to_handle_at() fails both with and without AT_HANDLE_MNT_ID_UNIQUE.

Restore the fallback to path_get_mnt_id_at() that was removed.
Fixes TEST-29-PORTABLE.directory

Follow-up for 5817c73391b5f3599c50df2c0873b26ea426f848
src/shared/discover-image.c