bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: [Fwd: Added "stage2-diskless" build]]


From: Christoph Plattner
Subject: [Fwd: [Fwd: Added "stage2-diskless" build]]
Date: Sun, 14 Oct 2001 01:53:40 +0200

Sorry, I did a msitake and mixed up my two patches.

This patch should simple build the stage2-diskless
file also, to boot locally the "diskless" version of
GRUB. Espacially for testing this is very useful.

With friendly regards
        Christoph P.


-- 
-------------------------------------------------------
private:        address@hidden
company:        address@hidden
--- Begin Message --- Subject: [Fwd: Added "stage2-diskless" build] Date: Sun, 14 Oct 2001 01:51:27 +0200
Hello Mr. Okuji,

I sent the patch only to bug-grub not to you.

Read below mre details.

In simple words: The preset menu is executed first in any way,
and is replaced (concerning menu entries) and overridden 
concerning settings) when a main config file (local or via net)
is present. The network environment will be activated (if using
the diskless version) between the preset and the main menu.

This new implementation does NOT violate your initial idea, but
gives the user the possibility to - for example - activate the
serial interface before running "bootp". Otherwise if the
server is not responding to the target (or other problems
concerning the ethernet link, etc) will lead to an "hanging"
GRUB, as no output is shown on the serial line.

See more details below.

With friendly regards
        Christoph P.


-- 
-------------------------------------------------------
private:        address@hidden
company:        address@hidden
--- Begin Message --- Subject: Added "stage2-diskless" build Date: Thu, 04 Oct 2001 00:00:33 +0200
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:        address@hidden
company:        address@hidden
? 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  <address@hidden>
+
+       * 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  <address@hidden>
 
        * 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
 
 @address@hidden = stage2 e2fs_stage1_5 fat_stage1_5 ffs_stage1_5 \
address@hidden@ minix_stage1_5 reiserfs_stage1_5 vstafs_stage1_5 nbgrub pxegrub
address@hidden@ minix_stage1_5 reiserfs_stage1_5 vstafs_stage1_5 nbgrub pxegrub 
\
address@hidden@ stage2-diskless
 
 @address@hidden = 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

--- End Message ---

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]