1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
30 TARGET = $(DIR_INFO)/$(THISAPP)
32 ###############################################################################
34 ###############################################################################
44 ###############################################################################
45 # Installation Details
46 ###############################################################################
49 # Create install pxe package as an alternate way to boot during install
51 mkdir -p /tmp/$(VERSION) /tmp/pxelinux.cfg
52 cp /usr/lib/syslinux/pxelinux.0 /tmp
53 cp /install/images/initrd /tmp/$(VERSION)/instroot
54 cp /boot/vmlinuz-$(KVER)-ipfire /tmp/$(VERSION)/vmlinuz
55 cp $(DIR_SRC)/config/syslinux/options.msg /tmp/$(VERSION)/options.msg
56 cp $(DIR_SRC)/config/syslinux/splash.lss /tmp/$(VERSION)/splash.lss
57 cp /usr/lib/memtest86+/memtest.bin /tmp/$(VERSION)/memtest
58 sed -e "s|splash.lss|$(VERSION)/splash.lss|" \
59 $(DIR_SRC)/config/syslinux/boot.msg \
60 > /tmp/$(VERSION)/boot.msg
61 sed -e "s|vmlinuz|$(VERSION)/vmlinuz|" \
62 -e "s|instroot|$(VERSION)/instroot|" \
63 -e "s|KERNEL memtest|KERNEL $(VERSION)/memtest|" \
64 -e "s|boot.msg|$(VERSION)/boot.msg|" \
65 -e "s|options.msg|$(VERSION)/options.msg|" \
66 $(DIR_SRC)/config/syslinux/syslinux.cfg \
67 > /tmp/pxelinux.cfg/$(SNAME)-pxe-$(VERSION).model
68 ln -s $(SNAME)-pxe-$(VERSION).model /tmp/pxelinux.cfg/default
69 chmod 444 /tmp/$(VERSION)/instroot
71 /install/images/$(SNAME)-$(VERSION).$(MACHINE)-pxe.tgz *