* util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
This commit is contained in:
parent
5dd8205424
commit
bca8873a0c
4 changed files with 19 additions and 3 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
|
||||
Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
|
||||
|
||||
2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
|
||||
less nice but more portable.
|
||||
* grub-core/lib/posix_wrap/wchar.h: Likewise.
|
||||
|
||||
2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
|
||||
|
|
|
@ -79,9 +79,9 @@ grub_util_get_devmapper_grub_dev (const char *os_dev);
|
|||
#include <sys/types.h>
|
||||
pid_t
|
||||
grub_util_exec_pipe (char **argv, int *fd);
|
||||
#endif
|
||||
void
|
||||
grub_util_pull_lvm_by_command (const char *os_dev);
|
||||
#endif
|
||||
char **
|
||||
grub_util_find_root_devices_from_poolname (char *poolname);
|
||||
|
||||
|
|
|
@ -119,9 +119,7 @@ grub_util_pull_device (const char *os_dev)
|
|||
switch (ab)
|
||||
{
|
||||
case GRUB_DEV_ABSTRACTION_LVM:
|
||||
#if !defined (__MINGW32__) && !defined (__CYGWIN__)
|
||||
grub_util_pull_lvm_by_command (os_dev);
|
||||
#endif
|
||||
/* Fallthrough in case that lvm-tools are unavailable. */
|
||||
case GRUB_DEV_ABSTRACTION_LUKS:
|
||||
grub_util_pull_devmapper (os_dev);
|
||||
|
|
|
@ -928,4 +928,11 @@ grub_util_biosdisk_is_floppy (grub_disk_t disk)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void
|
||||
grub_util_pull_lvm_by_command (const char *os_dev __attribute__ ((unused)))
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue