With a little patch in `stage2/Makefile.am' a diskless version of a stage2 is also built together with nbgrub and pxegrub, to load the "diskless" version of GRUB locally from disk.
If a machine cannot have a BOOTROM, or if there is a problem with etherboot/netboot, a boot floppy of the diskless GRUB can be used. The GRUB boots locally, but does a BOOTP and a download of the menu from the server (and of course also the OSes, ...) The GRUB versions now: local, normal: [stage1/stage1] [stage2/stage2 = start + pre_stage2] nbgrub [stage2/nbgrub = nbloader + diskless ] pxegrub [stage2/pxegrub = pxeloader + diskless ] local, diskless:[stage1/stage1] [stage2/stage2-diskless = start + diskless ] A boot floppy for diskless is GRUB is simply made by cat stage1/stage1 stage2/stage2-diskless > /dev/fd0 The `stage2-diskless' is together built with nbgrub and pxegrub, enabled by `--enable-diskless' as option in the configure script. With friendly regardss Christoph Plattner -- ------------------------------------------------------- private: [EMAIL PROTECTED] company: [EMAIL PROTECTED]
? stage2/AM cvs server: Diffing . Index: ChangeLog =================================================================== RCS file: /cvs/grub/ChangeLog,v retrieving revision 1.430 diff -u -r1.430 ChangeLog --- ChangeLog 2001/09/24 08:43:38 1.430 +++ ChangeLog 2001/10/03 21:48:15 @@ -1,3 +1,9 @@ +2001-10-03 Christoph Plattner <[EMAIL PROTECTED]> + + * stage2/Makefile.am: Added build for `stage2-diskless' to + load "diskless" GRUB from local devices (floppy, harddisk), + but loads config from server (instead of use of etherboot/netboot) + 2001-09-24 Jochen Hoenicke <[EMAIL PROTECTED]> * stage2/fsys_reiserfs.c (reiserfs_dir): Set errnum to cvs server: Diffing debian cvs server: Diffing docs Index: docs/Makefile.in =================================================================== RCS file: /cvs/grub/docs/Makefile.in,v retrieving revision 1.41 diff -u -r1.41 Makefile.in --- docs/Makefile.in 2001/07/05 11:29:56 1.41 +++ docs/Makefile.in 2001/10/03 21:48:16 @@ -284,11 +284,11 @@ done mostlyclean-aminfo: - -rm -f grub.aux grub.cp grub.cps grub.dvi grub.fn grub.ky grub.log grub.pg \ - grub.ps grub.toc grub.tp grub.vr multiboot.aux multiboot.cp \ - multiboot.cps multiboot.dvi multiboot.fn multiboot.ky \ - multiboot.log multiboot.pg multiboot.ps multiboot.toc \ - multiboot.tp multiboot.vr + -rm -f grub.aux grub.cp grub.dvi grub.fn grub.ky grub.log grub.pg grub.ps \ + grub.toc grub.tp grub.vr multiboot.aux multiboot.cp \ + multiboot.dvi multiboot.fn multiboot.ky multiboot.log \ + multiboot.pg multiboot.ps multiboot.toc multiboot.tp \ + multiboot.vr maintainer-clean-aminfo: cd $(srcdir) && \ cvs server: Diffing e2fs_stage1_5 cvs server: Diffing fat_stage1_5 cvs server: Diffing ffs_stage1_5 cvs server: Diffing grub cvs server: Diffing lib cvs server: Diffing netboot cvs server: Diffing shared_src cvs server: Diffing stage1 cvs server: Diffing stage2 Index: stage2/Makefile.am =================================================================== RCS file: /cvs/grub/stage2/Makefile.am,v retrieving revision 1.36 diff -u -r1.36 Makefile.am --- stage2/Makefile.am 2001/07/26 13:24:15 1.36 +++ stage2/Makefile.am 2001/10/03 21:48:18 @@ -30,7 +30,8 @@ if DISKLESS_SUPPORT pkgdata_DATA = stage2 e2fs_stage1_5 fat_stage1_5 ffs_stage1_5 \ - minix_stage1_5 reiserfs_stage1_5 vstafs_stage1_5 nbgrub pxegrub + minix_stage1_5 reiserfs_stage1_5 vstafs_stage1_5 nbgrub pxegrub \ + stage2-diskless noinst_DATA = pre_stage2 start nbloader pxeloader diskless noinst_PROGRAMS = pre_stage2.exec start.exec e2fs_stage1_5.exec \ fat_stage1_5.exec ffs_stage1_5.exec minix_stage1_5.exec \ @@ -206,6 +207,11 @@ # For pxegrub target. pxegrub: pxeloader diskless + -rm -f $@ + cat $^ > $@ + +# For booting diskless GRUB via floppy or harddisk +stage2-diskless: start diskless -rm -f $@ cat $^ > $@ Index: stage2/Makefile.in =================================================================== RCS file: /cvs/grub/stage2/Makefile.in,v retrieving revision 1.52 diff -u -r1.52 Makefile.in --- stage2/Makefile.in 2001/07/26 13:24:15 1.52 +++ stage2/Makefile.in 2001/10/03 21:48:19 @@ -118,7 +118,8 @@ EXTRA_PROGRAMS = nbloader.exec pxeloader.exec diskless.exec @DISKLESS_SUPPORT_TRUE@pkgdata_DATA = stage2 e2fs_stage1_5 fat_stage1_5 ffs_stage1_5 \ -@DISKLESS_SUPPORT_TRUE@ minix_stage1_5 reiserfs_stage1_5 vstafs_stage1_5 nbgrub pxegrub +@DISKLESS_SUPPORT_TRUE@ minix_stage1_5 reiserfs_stage1_5 vstafs_stage1_5 +nbgrub pxegrub \ +@DISKLESS_SUPPORT_TRUE@ stage2-diskless @DISKLESS_SUPPORT_FALSE@pkgdata_DATA = stage2 e2fs_stage1_5 fat_stage1_5 ffs_stage1_5 \ @DISKLESS_SUPPORT_FALSE@ minix_stage1_5 reiserfs_stage1_5 vstafs_stage1_5 @@ -2233,6 +2234,11 @@ # For pxegrub target. pxegrub: pxeloader diskless + -rm -f $@ + cat $^ > $@ + +# For booting diskless GRUB via floppy or harddisk +stage2-diskless: start diskless -rm -f $@ cat $^ > $@ cvs server: Diffing stage2_debug cvs server: Diffing util