tag 290521 patch
thanks

Here's a patch for this old bug.

-- 
Robert Millan
diff -Nur etherboot-5.4.1.old/debian/control etherboot-5.4.1/debian/control
--- etherboot-5.4.1.old/debian/control  2006-02-15 13:49:18.000000000 +0100
+++ etherboot-5.4.1/debian/control      2006-02-15 14:03:00.000000000 +0100
@@ -2,7 +2,7 @@
 Section: admin
 Priority: optional
 Maintainer: RISKO Gergely <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 4.0.0), mkisofs, mtools, syslinux, ia32-libs-dev 
[amd64]
+Build-Depends: debhelper (>> 4.0.0), mkisofs, mtools, syslinux, ia32-libs-dev 
[amd64], grub
 Standards-Version: 3.6.2.1
 
 Package: etherboot
diff -Nur etherboot-5.4.1.old/debian/grub-hack etherboot-5.4.1/debian/grub-hack
--- etherboot-5.4.1.old/debian/grub-hack        1970-01-01 01:00:00.000000000 
+0100
+++ etherboot-5.4.1/debian/grub-hack    2006-02-15 14:11:18.000000000 +0100
@@ -0,0 +1,27 @@
+#!/bin/sh
+set -e
+
+mkdir -p debian/tmp/root/boot/grub
+
+cp src/bin/*.zlilo debian/tmp/root/
+
+cat > debian/tmp/root/boot/grub/menu.lst << EOF
+root           (cd)
+EOF
+
+(cd debian/tmp/root && for i in *.zlilo ; do \
+  j=`echo $i | sed -e "s/\.zlilo$//g"` ; \
+  cat >> boot/grub/menu.lst << EOF
+
+title          $j
+kernel         /$i
+EOF
+done)
+
+cp /lib/grub/*-*/stage2_eltorito debian/tmp/root/boot/grub/
+
+mkisofs \
+  -b boot/grub/stage2_eltorito \
+  -no-emul-boot -boot-load-size 4 -boot-info-table \
+  -o debian/all-in-one.iso \
+  -r debian/tmp/root
diff -Nur etherboot-5.4.1.old/debian/rules etherboot-5.4.1/debian/rules
--- etherboot-5.4.1.old/debian/rules    2006-02-15 13:49:18.000000000 +0100
+++ etherboot-5.4.1/debian/rules        2006-02-15 14:11:32.000000000 +0100
@@ -32,14 +32,15 @@
 build-stamp: configure-stamp 
        dh_testdir
        $(MAKE) -C src alldsks allzdsks allroms allzroms allisos alllisos 
allzlilos alllilos allzpxes allpxes allcoms allelfs
-       # $(MAKE) -C src bin/etherboot-pci.* doesn't work from now (5.3.14), we 
need some grub hack probably
+       # $(MAKE) -C src bin/etherboot-pci.* doesn't work from now (5.3.14).  
Use grub hack instead.
+       sh debian/grub-hack
        
        touch build-stamp
 
 clean:
        dh_testdir
        dh_testroot
-       rm -f build-stamp configure-stamp
+       rm -f build-stamp configure-stamp debian/all-in-one.iso
        -$(MAKE) -C src clean
        dh_clean
 
@@ -48,7 +49,8 @@
        dh_testroot
        dh_clean -k
        dh_installdirs
-       cp src/bin/*.com  src/bin/*.zdsk  src/bin/*.dsk  src/bin/*.zpxe  
src/bin/*.pxe  src/bin/*.zlilo  src/bin/*.lilo  src/bin/*.zrom  src/bin/*.rom  
src/bin/*.iso  src/bin/*.liso  src/bin/*.elf 
$(CURDIR)/debian/etherboot/usr/share/etherboot
+       cp src/bin/*.com  src/bin/*.zdsk  src/bin/*.dsk  src/bin/*.zpxe  
src/bin/*.pxe  src/bin/*.zlilo  src/bin/*.lilo  src/bin/*.zrom  src/bin/*.rom  
src/bin/*.iso  src/bin/*.liso  src/bin/*.elf \
+               debian/all-in-one.iso 
$(CURDIR)/debian/etherboot/usr/share/etherboot
        gzip -9 $(CURDIR)/debian/etherboot/usr/share/etherboot/*
        chmod a-x $(CURDIR)/debian/etherboot/usr/share/etherboot/*
 

Reply via email to