diff options
author | Erwan Velu <erwan@mandriva.org> | 2002-02-13 17:31:41 +0000 |
---|---|---|
committer | Erwan Velu <erwan@mandriva.org> | 2002-02-13 17:31:41 +0000 |
commit | c4301d1c1317db55049a76cc1bb6a8a139384cb0 (patch) | |
tree | 65235c798ea6df977b2c7d68ee77b3609a7fdfc7 /tools | |
parent | d01bc83159bdcdea52c227c5876b0c9b88f292d6 (diff) | |
download | drakx-backup-do-not-use-c4301d1c1317db55049a76cc1bb6a8a139384cb0.tar drakx-backup-do-not-use-c4301d1c1317db55049a76cc1bb6a8a139384cb0.tar.gz drakx-backup-do-not-use-c4301d1c1317db55049a76cc1bb6a8a139384cb0.tar.bz2 drakx-backup-do-not-use-c4301d1c1317db55049a76cc1bb6a8a139384cb0.tar.xz drakx-backup-do-not-use-c4301d1c1317db55049a76cc1bb6a8a139384cb0.zip |
Adding missing file on netboot
Diffstat (limited to 'tools')
-rw-r--r-- | tools/i386/netboot/device.map | 1 | ||||
-rwxr-xr-x | tools/i386/netboot/makeImages | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/tools/i386/netboot/device.map b/tools/i386/netboot/device.map new file mode 100644 index 000000000..bf3423b23 --- /dev/null +++ b/tools/i386/netboot/device.map @@ -0,0 +1 @@ +(fd0) /dev/fd0 diff --git a/tools/i386/netboot/makeImages b/tools/i386/netboot/makeImages new file mode 100755 index 000000000..79d45c11e --- /dev/null +++ b/tools/i386/netboot/makeImages @@ -0,0 +1,31 @@ +#!/bin/sh +# compile multiple grub stages (1, 2, pxegrub and nbgrub) for all supported network cards +LOCALPATH=`pwd` +PATHGRUB="../grub-0.91" # Path were grub is stored +DRIVERTOCOMPILE=`grep NETBOOT_DRIVERS= ${PATHGRUB}/configure.in | cut -d " " -f 4 | cut -d "." -f 1` + +echo "Cleaning old drivers" +for i in `ls` +do + if [ -d $i ]; then + rm -rf $i + fi + +done + +cd ${PATHGRUB} + +echo "Compiling new ones" +for i in ${DRIVERTOCOMPILE} + do + make clean + ./configure --enable-$i --enable-diskless + make + mkdir ${LOCALPATH}/$i + cp stage1/stage1 ${LOCALPATH}/$i/stage1 + cp stage2/stage2 ${LOCALPATH}/$i/stage2 + cp stage2/pxegrub ${LOCALPATH}/$i/pxegrub + cp stage2/nbgrub ${LOCALPATH}/$i/nbgrub + echo "compil done for " $i +done +cp ${PATHGRUB}/grub/grub ${LOCALPATH} -f |