systemd-stable v246.6
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEXCUbX8VOsvgPQHqqxUyjNs/rVX4FAl9nNtoACgkQxUyjNs/r
VX5cdg//aU3Y/Z7PgupZBsLk04618yGaX4USCXE9R7wmTiF2gM3D5kGqv71wfmax
01eRrREi1aOZwhov0n0ax5oTYM6dLXbUhHMComXyxPwUgZDYL4L8j8MohjSpIpzs
SSsTRFuTcaeDhsc1fI7SfkGlcNtLKqfZOVoMSiOqSmwOxbuLhH9NEP8R6TLQuP4g
9qJdCRA6F28rMdCb1TsQ3WL/4dMm7Cn79ka8PPzVSl4qdHJhGc7xnGnE64uMxWqj
5kOPoUNtRJQfIKIAHjWucfKW/cW1kUZPMdl0rwpSCVVdc6ooUA3kC5gxFt0N0Ut7
l0NQ7OSmbTs9xDj0YsR+Sb8AJ4COrIUOfgQEn5DHhQWCF/LegbF5fhdoQCwZnjT2
uK6Z+cNGlhxZKAdkYgFJsbdpDmi9eG2Aixxv8TIKd8f+04SU00wkdQ/X7BAkzKDI
m3+BV/QTWTEf8nCTHBpPZKWWVJ0T9AIUFazP4UHNQvgEj+YBwEmqb1QUW14CGISS
3l7Mq86HF1iwFpecbpS5jB3uNTQSdk0MAU59KDkaUwrzXWf5OJczTj5FwrXOpp85
3Kd9nAh5Ik8q801+FD9BKLXs3IoX5itZlWHX3X956ZkGQVGVLGr4Ga+RJBB9wSfP
sF4tfk83Fg+oSh9s2lzvxS4XYN9cSt61F1aTSASXWFl9S2PsRHw=
=zYL9
-----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)
1 file changed
tree: 6ca6338f33aa400f9ed3564b72b4c7d52f9aad2f
  1. .clang-format
  2. .ctags
  3. .dir-locals.el
  4. .editorconfig
  5. .gitattributes
  6. .github/
  7. .gitignore
  8. .lgtm.yml
  9. .lgtm/cpp-queries/
  10. .mailmap
  11. .mkosi/
  12. .travis.yml
  13. .vimrc
  14. .ycm_extra_conf.py
  15. LICENSE.GPL2
  16. LICENSE.LGPL2.1
  17. Makefile
  18. NEWS
  19. README
  20. README.md
  21. TODO
  22. azure-pipelines.yml
  23. catalog/
  24. coccinelle/
  25. configure
  26. docs/
  27. factory/etc/
  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

System and Service Manager

Semaphore CI Build Status
Coverity Scan Status
OSS-Fuzz Status
CIFuzz
CII Best Practices
Travis CI Build Status
Language Grade: C/C++
CentOS CI Build Status
Build Status
Fossies codespell report Packaging status

Details

Most documentation is available on systemd's web site.

Assorted, older, 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.