2
* GRUB -- GRand Unified Bootloader
3
* Copyright (C) 2003, 2007, 2008, 2009 Free Software Foundation, Inc.
5
* GRUB is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* GRUB is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef GRUB_UTIL_GETROOT_HEADER
20
#define GRUB_UTIL_GETROOT_HEADER 1
22
enum grub_dev_abstraction_types {
23
GRUB_DEV_ABSTRACTION_NONE,
24
GRUB_DEV_ABSTRACTION_LVM,
25
GRUB_DEV_ABSTRACTION_RAID,
28
char *grub_guess_root_device (const char *dir);
29
char *grub_get_prefix (const char *dir);
30
int grub_util_get_dev_abstraction (const char *os_dev);
31
char *grub_util_get_grub_dev (const char *os_dev);
32
const char *grub_util_check_block_device (const char *blk_dev);
33
const char *grub_util_check_char_device (const char *blk_dev);
35
#endif /* ! GRUB_UTIL_GETROOT_HEADER */