summaryrefslogtreecommitdiff
path: root/travis-ci
diff options
context:
space:
mode:
authorKir Kolyshkin <kolyshkin@gmail.com>2020-07-31 19:24:15 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-20 12:16:04 +0200
commit2ee1c57c4ff4fd3349cf03c2e89fbd18ca0b3a4a (patch)
tree6ca6338f33aa400f9ed3564b72b4c7d52f9aad2f /travis-ci
parenta2a8802abe1289e200213130764c81da2c4fbf4e (diff)
downloadsystemd-246.6.tar.gz
kernel-install/90-loaderentry: fix when /boot is not mountpointv246.6
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)
Diffstat (limited to 'travis-ci')
0 files changed, 0 insertions, 0 deletions