target/linux/x86/image: add explicit prefix to grub-mkimage command
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Wed, 23 Nov 2016 08:27:55 +0000 (10:27 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 20 Dec 2016 15:24:21 +0000 (16:24 +0100)
commit81a2f9d6f8612e5f0f440a9690a711d1c2d3fbc5
tree33359e445674868c4daec6fcbda5dabb5967535f
parent65c8f2890ca4f41f5b933b5bc1e43de86cc1bd54
target/linux/x86/image: add explicit prefix to grub-mkimage command

In the latest version of grub-mkimage, the prefix option is mandatory.
Not supplying it fails with:
```
Prefix not specified (use the -p option).
```

In grub-2.02-beta2 a DEFAULT_DIRECTORY was defined
in `include/grub/osdep/hostfile_unix.h` as:
```
 #if defined (__NetBSD__)
 /* NetBSD uses /boot for its boot block.  */
 # define DEFAULT_DIRECTORY  "/"GRUB_DIR_NAME
 #else
 # define DEFAULT_DIRECTORY  "/"GRUB_BOOT_DIR_NAME"/"GRUB_DIR_NAME
 #endif
```

Where:
* GRUB_BOOT_DIR_NAME == boot
* GRUB_DIR_NAME == grub

This was used if the -p option was omitted.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
target/linux/x86/image/Makefile