2007-08-02 Marco Gerards <marco@gnu.org>
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and `util/hostfs.c'. * disk/host.c: New file. * util/hostfs.c: Likewise. * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk, return `GRUB_ERR_BAD_FS'. * fs/sfs.c (grub_sfs_mount): Likewise. * fs/xfs.c (grub_xfs_mount): Likewise. * include/grub/disk.h (enum grub_disk_dev_id): Add `GRUB_DISK_DEVICE_HOST_ID'. * util/grub-emu.c (main): Initialize and de-initialize hostfs.
This commit is contained in:
parent
d3cec7ce6d
commit
0a203f83ff
11 changed files with 277 additions and 9 deletions
|
@ -175,6 +175,8 @@ main (int argc, char *argv[])
|
|||
/* XXX: This is a bit unportable. */
|
||||
grub_util_biosdisk_init (args.dev_map);
|
||||
|
||||
grub_hostfs_init ();
|
||||
|
||||
grub_init_all ();
|
||||
|
||||
/* Make sure that there is a root device. */
|
||||
|
@ -204,6 +206,8 @@ main (int argc, char *argv[])
|
|||
|
||||
grub_fini_all ();
|
||||
|
||||
grub_hostfs_fini ();
|
||||
|
||||
grub_machine_fini ();
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue