From: Alan H. <al...@us...> - 2005-04-29 09:03:34
|
Update of /cvsroot/ipcop/ipcop/lfs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25818/lfs Modified Files: boot.img Log Message: No longer use the loop device on the host system for boot floppy creation. But use mtools. Also the boot disk is now 2.88Mb (for now - it will be fixed later) Index: boot.img =================================================================== RCS file: /cvsroot/ipcop/ipcop/lfs/boot.img,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** boot.img 29 Mar 2005 18:45:23 -0000 1.11 --- boot.img 29 Apr 2005 09:03:23 -0000 1.12 *************** *** 53,75 **** $(TARGET) : ! if [ "$(MACHINE)" = "i386" ]; then \ ! dd if=/dev/zero of=/install/images/boot-$(VERSION).img bs=1024 count=1440; \ ! mkdosfs -f 1 -r 16 /install/images/boot-$(VERSION).img; \ ! syslinux -s /install/images/boot-$(VERSION).img; \ ! for i in `seq 0 7`; do \ ! if (! losetup /dev/loop$${i} >/dev/null 2>&1 ); then \ ! LOOPNUM=$$i; \ ! LOOPDEV="/dev/loop$${i}"; \ ! break; \ ! fi; \ ! done; \ ! losetup $$LOOPDEV /install/images/boot-$(VERSION).img; \ ! mount -t msdos $$LOOPDEV /install/mnt; \ ! cp $(DIR_SRC)/config/kernel/install-message /install/mnt/message; \ ! cp $(DIR_SRC)/config/kernel/syslinux.cfg /install/mnt/syslinux.cfg; \ ! cp /boot/vmlinuz-installer /install/mnt/vmlinuz; \ ! cp /install/images/fdinitrd.gz /install/mnt/instroot.gz; \ ! umount /install/mnt; \ ! losetup -d $$LOOPDEV; \ ! fi ! --- 53,64 ---- $(TARGET) : ! rm -f /dev/zero ! mknod /dev/zero c 1 5 ! dd if=/dev/zero of=/install/images/boot-$(VERSION).img bs=1024 count=2880 ! mkdosfs -f 1 -r 16 /install/images/boot-$(VERSION).img ! syslinux -s /install/images/boot-$(VERSION).img ! echo "drive i: file=\"/install/images/boot-$(VERSION).img\"" exclusive mformat_only > /etc/mtools.conf ! mcopy $(DIR_SRC)/config/kernel/install-message i:message ! mcopy $(DIR_SRC)/config/kernel/syslinux.cfg i:syslinux.cfg ! mcopy /boot/vmlinuz-$(KVER) i:vmlinuz ! mcopy /install/images/fdinitrd.gz i:instroot.gz |