]> git.ipfire.org Git - thirdparty/systemd.git/commit
discover-image: restore compatibility with C9S and overlayfs directories (#40616)
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 10 Feb 2026 06:56:48 +0000 (07:56 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Feb 2026 06:56:48 +0000 (07:56 +0100)
commite4dcf0cbce7f3fc76e14ae946df8ae5c08a6c401
tree74f4b2e3a14392be2514df37f0ed56ae12201155
parent14519d7dfa806a1d2d999e4c88037f3ce6a84c08
parent7755127ca5398359f6b94f7b8203232ff5ef539e
discover-image: restore compatibility with C9S and overlayfs directories (#40616)

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