systemd-stable v244.5
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEXCUbX8VOsvgPQHqqxUyjNs/rVX4FAl9nNYYACgkQxUyjNs/r
VX6cmQ//cv1TBGkvEIyI49UQgxgsdITHhcJB9yjkPEbdS8oT83p2rmWHxpHW4kzB
fpnLeeZ3DjXsKwMPd7XyRhb1CAe99pw00f/tDU5Mne4cDdUj3jxd7pINVcJ0FVnZ
H/jqga/8RJM3PoCKuaULhdzCntKw6b3NHzKgofzK377wIATM26T9pprAdiYItEx4
VEXDr2QFxi7rz4/zQkXht6Mv1eu89lEB4jkkRFV0U0rsUl/tXM2ZYifBg3MBds/t
1RImpEZQ4Pbr6BwsAqMqwm4nkskIFEzynw0yNj7pkjrzJbUpkISnLb7tvlxHBRE5
QxGTvfc4W6EdO7nIp5UfZkOr3nS9xMyvQQNJS3Emfxyf9E0TIDqLOat/YbkfLMH4
ogfBSr+MwvUGLg9XUU+KbFzqhu+oIyfDsSoQ/XEWcNCzFv11R9qQ2iIr3+GlGVQO
DyokfsFLDoow7FnMJ1CLxP/AVVLm0EWbSINxl2s0Dar2+iSPmfI0DpZCnxp6Uc+N
VobPffjT4P6wvLls4r/ZBFVbUjdzZzURa64j9nKYhuwBanJz9QgFkLjLKT9w5ASM
FMiCWb6yIrkE/RGyTql9g6ww3/M24Z1ln0qRgrXWRKylkAcH2Rb955JAhIQe3Pa5
6ZK6SC0tYRwlxfiyVolH9dGXMHDGIcwg8yAB655Wy50p2gjR5hg=
=2iW9
-----END PGP SIGNATURE-----
kernel-install/90-loaderentry: fix when /boot is not mountpoint

I happen to have a machine where /boot is not a separate mountpoint,
but rather just a directory under /. After upgrade to recent Fedora,
I found out that grub2 can't find any new kernels.

This happens because loadentry script generates kernel and initrd file
paths relative to /boot, while grub2 expects path to be relative to the
root of filesystem on which they are residing.

This commit fixes this issue by using stat's %m to find the mount point
of a partition holding the images, and using it as a prefix to be
removed from ENTRY_DIR_ABS.

Note that %m for stat requires coreutils 8.6, released in Oct 2010.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 1cdbff1c844ce46f1d84d8feeed426ebfd550988)
(cherry picked from commit 2ee1c57c4ff4fd3349cf03c2e89fbd18ca0b3a4a)
(cherry picked from commit 325edff51a8f03c8c777a6c2762e7891266cc9dc)
1 file changed
tree: 97b51554a8d62f0c839892aafbec8a4701b042f9
  1. .ctags
  2. .dir-locals.el
  3. .editorconfig
  4. .gitattributes
  5. .github/
  6. .gitignore
  7. .lgtm.yml
  8. .lgtm/cpp-queries/
  9. .mailmap
  10. .mkosi/
  11. .travis.yml
  12. .vimrc
  13. .ycm_extra_conf.py
  14. LICENSE.GPL2
  15. LICENSE.LGPL2.1
  16. Makefile
  17. NEWS
  18. README
  19. README.md
  20. TODO
  21. azure-pipelines.yml
  22. catalog/
  23. coccinelle/
  24. configure
  25. docs/
  26. factory/etc/
  27. fuzzbuzz.yaml
  28. hwdb.d/
  29. man/
  30. meson.build
  31. meson_options.txt
  32. mkosi.build
  33. modprobe.d/
  34. network/
  35. po/
  36. presets/
  37. rules.d/
  38. semaphoreci/
  39. shell-completion/
  40. src/
  41. sysctl.d/
  42. sysusers.d/
  43. test/
  44. tmpfiles.d/
  45. tools/
  46. travis-ci/
  47. units/
  48. xorg/
  49. zanata.xml
README.md

systemd logo

systemd - System and Service Manager

Semaphore CI Build Status
Coverity Scan Status
Fuzzit Status
OSS-Fuzz Status
CII Best Practices
Travis CI Build Status
Language Grade: C/C++
CentOS CI Build Status
Build Status

Details

General information about systemd can be found in the systemd Wiki.

Information about build requirements is provided in the README file.

Consult our NEWS file for information about what's new in the most recent systemd versions.

Please see the Hacking guide for information on how to hack on systemd and test your modifications.

Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.

When preparing patches for systemd, please follow our Coding Style Guidelines.

If you are looking for support, please contact our mailing list or join our IRC channel.

Stable branches with backported patches are available in the stable repo.