kernel-install: do not resolve symlink in paths passed to plugins
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 21 Nov 2023 01:18:57 +0000 (10:18 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 21 Nov 2023 12:57:00 +0000 (12:57 +0000)
commit54bc114fec5bf9ef00eb612b72ec16b52023add9
treec0ae163586f2adf84f16f074fae6dfbc7847e1e6
parentb0c11b5a0fca69ce79a22194ffd25e06949af540
kernel-install: do not resolve symlink in paths passed to plugins

When we resolve symlinks, paths (especially filenames) may be changed,
but plugins may expect to see the kernel added under the name specified,
not under the final name that the symlink chain resolves to.

This makes symlinks in specified paths that passed to plugins are not
resolved when neither --root nor --image specified.

Fixes #29317.
src/kernel-install/kernel-install.c