2005-01-21 Marco Gerards <metgerards@student.han.nl>
Add the loopback device, a device via which files can be accessed as devices. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'. (pkgdata_MODULES): Add loopback.mod. (loopback_mod_SOURCES): New variable. (loopback_mod_CFLAGS): Likewise. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `disk/loopback.c'. (pkgdata_MODULES): Add loopback.mod. (loopback_mod_SOURCES): New variable. (loopback_mod_CFLAGS): Likewise. * disk/loopback.c: new file. * include/grub/normal.h (grub_loop_init): New prototype. (grub_loop_fini): New prototype. * util/grub-emu.c (main): Initialize and de-initialize loopback support. * include/grub/disk.h (grub_disk_dev_id): Add `GRUB_DISK_DEVICE_LOOPBACK_ID'.
This commit is contained in:
parent
6f1c18bd82
commit
67bbaf0f38
9 changed files with 546 additions and 105 deletions
|
@ -176,13 +176,15 @@ main (int argc, char *argv[])
|
|||
grub_cmp_init ();
|
||||
grub_cat_init ();
|
||||
grub_terminal_init ();
|
||||
|
||||
grub_loop_init ();
|
||||
|
||||
/* XXX: Should normal mode be started by default? */
|
||||
grub_normal_init ();
|
||||
|
||||
/* Start GRUB! */
|
||||
grub_main ();
|
||||
|
||||
grub_loop_fini ();
|
||||
grub_util_biosdisk_fini ();
|
||||
grub_normal_fini ();
|
||||
grub_ufs_fini ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue