John5342 wrote:
find_file( GRUB2_BURG_CONFIGURATION_FILE NAMES grub2.cfg burg.cfg grub.cfg PATHS "/boot/grub2" "/boot/burg" "/boot/grub" "/etc" DOC "Path to grub2 or burg configuration file" NO_DEFAULT_PATH )
Ugh, find_file is a very bad way to handle this! We normally build packages in a chroot (and I guess several other distros do the same). There is not necessarily any bootloader installed at all in the chroot.
This needs to be a CMake variable settable from the command line (i.e. from our specfile), with find_file only as a fallback.
Kevin Kofler