Skip to content
Commit 325edff5 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Zbigniew Jędrzejewski-Szmek
Browse files

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: default avatarKir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 1cdbff1c)
(cherry picked from commit 2ee1c57c)
parent d7f93147
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment