79ca2d78d4
* include/grub/util/getroot.h (grub_util_check_block_device): Export new function. * util/getroot.c (grub_util_check_block_device): New function that returns the given argument if it is a block device and returns NULL else. * util/grub-probe.c (argument_is_device): New variable. (probe): Promote device_name from a variable to an argument. Receive device_name from grub_util_check_block_device() if path is NULL and from grub_guess_root_device() else. Do not free() device_name anymore. (options): Introduce new parameter '-d, --device'. (main): Add description of the new parameter to the help screen. Rename path variable to argument. Set argument_is_device if the '-d' option is given. Pass argument to probe() depending on argument_is_device. |
||
---|---|---|
.. | ||
elf | ||
grub.d | ||
i386 | ||
ieee1275 | ||
powerpc/ieee1275 | ||
biosdisk.c | ||
console.c | ||
genmoddep.c | ||
getroot.c | ||
grub-emu.c | ||
grub-fstest.c | ||
grub-mkdevicemap.c | ||
grub-probe.c | ||
hostfs.c | ||
lvm.c | ||
misc.c | ||
raid.c | ||
resolve.c | ||
unifont2pff.rb | ||
update-grub.in | ||
update-grub_lib.in |