2 # This is disabled by default, as GRUB does good job by itself
4 # This is rather a proof-of-concept example how such things can be implemented
24 modules="$modules $(/sbin/grub-probe --target=fs /boot)"
25 modules="$modules $(/sbin/grub-probe --target=abstraction /boot)"
26 modules="$modules part_$(/sbin/grub-probe --target=partmap /boot)"
27 modules="$modules search_fs_file search_fs_uuid"
28 modules="$modules $GRUB_EXTRA_MODULES"
29 drive="$(/sbin/grub-probe --target=drive /boot)"
31 if [ "$ARCH" = "x86_64" ] ; then
37 if /bin/mountpoint -q /boot ; then
40 prefix="$drive/boot/grub"
44 for module in $modules ; do
45 [ -e "/lib/grub/$target/$module.mod" ] && final_modules="$final_modules $module"
48 is_yes $VERBOSE && set -x
49 /sbin/grub-mkimage -O "$target" -d /lib/grub/$target \
50 --output=$DESTDIR/grub.efi \
51 --prefix="$prefix" $final_modules