grub/util
Andrey Borzenkov 69ca97c820 fix using grub device name as install device
Shell version of grub-install called grub-setup which resolved
install device name and called main setup routine. C version of
grub-install calls main setup routine directly, which leads
to the error:

grub2-install: info: grub-bios-setup  --verbose  --force  --skip-fs-probe --directory='/boot/grub2/i386-pc' --device-map='/boot/grub2/device.map' '(hd2)'.
grub2-install: info: reading /boot/grub2/i386-pc/boot.img.
grub2-install: info: reading /boot/grub2/i386-pc/core.img.
grub2-install: info: root is `(null)', dest is `(hd2)'.
grub2-install: info: Opening dest.
grub2-install: info: drive = -1.
grub2-install: error: disk `(hd2)' not found.

Move resolving of destination device name into main setup routine
so it is done consistently in both cases.
2013-11-29 11:32:34 +04:00
..
bash-completion.d Clean up dangling references to grub-setup. 2013-01-12 13:30:37 +00:00
grub.d * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to 2013-11-19 23:39:51 +01:00
i386/efi Merge mainline into install 2010-09-15 14:46:53 +02:00
ieee1275 Move set_program_name and init_nls to host_init. On windows 2013-10-13 20:03:42 +02:00
bin2h.c Fix handling of build-time grub-bin2h and grub-mkfont when doing 2013-08-14 10:56:55 +02:00
config.c Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir 2013-11-16 20:21:16 +01:00
editenv.c Introduce grub_util_file_sync and use it instead of fsync(fileno(f)). 2013-11-27 14:13:50 +01:00
garbage-gen.c * util/garbage-gen.c: Add missing include of sys/time.h. 2013-11-23 12:42:30 +01:00
getroot.c * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove 2013-11-14 15:08:37 +00:00
glue-efi.c * util/grub-render-label.c: Move backend part to ... 2013-10-19 02:37:01 +02:00
grub-editenv.c Introduce grub_util_file_sync and use it instead of fsync(fileno(f)). 2013-11-27 14:13:50 +01:00
grub-fstest.c * util/grub-fstest.c: Remove variable length arrays. 2013-11-29 05:50:32 +01:00
grub-gen-asciih.c Move ascii.h and widthspec.h generation to a separate build-time-only 2013-08-21 19:53:59 +02:00
grub-gen-widthspec.c * Makefile.am (widthspec.h): Fix typo. 2013-08-21 20:26:26 +02:00
grub-glue-efi.c * util/grub-render-label.c: Move backend part to ... 2013-10-19 02:37:01 +02:00
grub-install-common.c Introduce grub_util_file_sync and use it instead of fsync(fileno(f)). 2013-11-27 14:13:50 +01:00
grub-install.c * util/grub-install.c (update_nvram): Support --no-nvram flag 2013-11-23 13:02:12 +01:00
grub-kbdcomp.in Apply program name transformations at build-time rather than at 2012-12-28 06:57:17 +00:00
grub-macho2img.c * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen. 2013-11-11 22:48:43 +01:00
grub-menulst2cfg.c Add a wrapper for fopen. On unix-like systems just pass-through. On 2013-10-13 20:36:28 +02:00
grub-mkconfig.in * util/grub-mkconfig.in: Say explicit "grub configuration" rather 2013-11-20 10:18:19 +01:00
grub-mkconfig_lib.in * util/grub-probe.c (probe): Separate different drives in hint-str 2013-10-14 18:27:29 +02:00
grub-mkfont.c Remove vestiges of -Wunsafe-loop-optimisations. 2013-11-07 02:25:31 +01:00
grub-mkimage.c Introduce grub_util_file_sync and use it instead of fsync(fileno(f)). 2013-11-27 14:13:50 +01:00
grub-mkimagexx.c Unify GOT/trampoline handling between PPC, MIPS and IA64 as they 2013-11-21 21:54:33 +01:00
grub-mklayout.c Handle Japanese special keys. 2013-10-17 00:49:05 +02:00
grub-mknetdir.c Speed up test suite by avoiding fsync 2013-11-27 10:10:22 +00:00
grub-mkpasswd-pbkdf2.c Move set_program_name and init_nls to host_init. On windows 2013-10-13 20:03:42 +02:00
grub-mkrelpath.c Move set_program_name and init_nls to host_init. On windows 2013-10-13 20:03:42 +02:00
grub-mkrescue.c * util/grub-mkrescue.c (main): Check that fread succeeded. 2013-11-29 03:54:21 +01:00
grub-mkstandalone.c Speed up test suite by avoiding fsync 2013-11-27 10:10:22 +00:00
grub-mount.c * util/grub-mount.c: Handle symlinks to directories. 2013-11-02 20:30:39 +01:00
grub-pe2elf.c Add a wrapper for fopen. On unix-like systems just pass-through. On 2013-10-13 20:36:28 +02:00
grub-probe.c Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir 2013-11-16 20:21:16 +01:00
grub-reboot.in * util/grub-reboot.in (usage): Fix a typo. 2013-11-15 14:32:03 +00:00
grub-render-label.c * util/grub-render-label.c: Move backend part to ... 2013-10-19 02:34:18 +02:00
grub-script-check.c Add a wrapper for fopen. On unix-like systems just pass-through. On 2013-10-13 20:36:28 +02:00
grub-set-default.in * util/grub-mkconfig.in: Replace $0 with $self. 2013-10-26 20:05:29 +02:00
grub-setup.c fix using grub device name as install device 2013-11-29 11:32:34 +04:00
import_gcry.py * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length 2013-11-20 20:09:18 +01:00
import_gcrypth.sed Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
import_unicode.py * util/import_unicode.py: Add missing brackets around string for 2012-03-10 20:47:12 +01:00
misc.c Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir 2013-11-16 20:21:16 +01:00
mkimage.c * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for 2013-11-29 04:14:26 +01:00
probe.c Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir 2013-11-16 20:21:16 +01:00
render-label.c * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init 2013-10-28 13:33:12 +01:00
resolve.c Add a wrapper for fopen. On unix-like systems just pass-through. On 2013-10-13 20:36:28 +02:00
setup.c fix using grub device name as install device 2013-11-29 11:32:34 +04:00
setup_bios.c Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c) 2013-10-15 16:16:04 +02:00
setup_sparc.c Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c) 2013-10-15 16:16:04 +02:00
spkmodem-recv.c Improve spkmomdem reliability by adding a separator between bytes. 2013-01-21 14:55:30 +01:00