grub-mkrelpath
make a system path relative to its filesystem root for GRUB
TLDR
SYNOPSIS
grub-mkrelpath [OPTION ...] PATH
DESCRIPTION
grub-mkrelpath makes a filesystem path relative to the root of the filesystem that contains it. GRUB addresses files from the root of each filesystem, so a Linux path that includes a mount point is not the path GRUB uses.For instance, if /usr is a mount point:
PARAMETERS
-?, --help
Print a summary of the command-line options and exit--usage
Print a short usage message and exit-V, --version
Print the version number of GRUB and exit
INSTALL
CAVEATS
The result is relative to the containing filesystem, not to `/`. A path on the root filesystem still has its leading `/` stripped only for the portion after that filesystem's root. The path must exist; otherwise the command fails.
HISTORY
grub-mkrelpath is a user-space utility in GRUB 2 (GRand Unified Bootloader). It is used while generating configuration so that paths remain valid when GRUB boots from a device whose Linux mount point is not `/`.
SEE ALSO
grub-mkconfig(8), grub-probe(1), grub-install(8)
