Could I replace the "grub-mkdevicemap" utility (removed from GRUB in 2012) with "grub2-probe" instead?
grub-customizer 5.2.3 asks me to set the MKDEVICEMAP_CMD, which by default tries to use
grub-mkdevicemap --device-
Unfortunately I found that a "mkdevicemap" utility simply doesn't exist in a modern GRUB2 - it has been removed with 8be63f2ef6fec43
commit 8be63f2ef6fec43
Author: Vladimir 'phcoder' Serbinenko <email address hidden>
Date: Fri Feb 3 22:36:51 2012 +0100
* Makefile.util.def (grub-mkdevicemap): Removed.
* include/
* include/
* util/deviceiter.c: Likewise.
* util/getroot.c (grub_util_
* util/grub-
replacement for EFI.
* util/grub-
* util/grub-probe.c (probe): Handle PRINT_DISK.
If we'd look at this commit, instead of ' $grub_mkdevicemap" --device-
' "$grub_probe" --target=device --device-
' "$grub_probe" --target=device --device-
' "$grub_probe" --target=device --device-
are being used, so probably I can get away with setting a
MKDEVICEMAP_CMD: grub2-probe --target=device --device-
[ I am running CentOS 8 installed in a traditional BIOS mode (CSM) with grub2 2.02 (2.02-106, the latest packaged GRUB2 for this sytem). I am trying to use grub-customizer 5.2.3 which I had to build & install from this launchpad's source code because a grub-customizer (like many other packages) is sadly not available at CentOS 8 repository and 5.0.8 taken from CentOS 7 crashes at launch. ]
QUESTION: Do you think the replacement of the deprecated grub-mkdevicemap with that grub2-probe will work, or it is going to break my system?
P.S. I also raised a bug here about this - https:/
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: