]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
pxe image is done in own lfs file.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 May 2009 19:00:43 +0000 (21:00 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 May 2009 19:00:43 +0000 (21:00 +0200)
lfs/pxe [changed from symlink to file mode: 0644]

diff --git a/lfs/pxe b/lfs/pxe
deleted file mode 120000 (symlink)
index 5e798fa0ef25a954e199245461ba4f5cb982829a..0000000000000000000000000000000000000000
--- a/lfs/pxe
+++ /dev/null
@@ -1 +0,0 @@
-images
\ No newline at end of file
diff --git a/lfs/pxe b/lfs/pxe
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..a9aea00ab1cb1c4825588d5ec974123e21e10b7c
--- /dev/null
+++ b/lfs/pxe
@@ -0,0 +1,98 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+PKG_NAME   = pxe
+PKG_VER    =
+PKG_REL    = -1
+
+THISAPP    = $(PKG_NAME)
+
+OBJECT     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
+
+MAINTAINER =
+GROUP      =
+CORE       = no
+EXTRA      = no
+DEBUG      = no
+DEPS       =
+
+URL        =
+LICENSE    =
+
+PXE_DIR    = $(CDROM_DIR)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects =
+
+download: $(objects)
+
+info:
+       $(DO_PKG_INFO)
+
+install: $(OBJECT)
+
+package:
+       @$(DO_PACKAGE)
+
+$(objects):
+       @$(LOAD)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(OBJECT): $(objects)
+       @rm -rf $(PXE_DIR)/* && mkdir -pv $(PXE_DIR)/{pxelinux.cfg,$(SNAME)}
+
+       # Make image with networking support
+       mkliveramfs -f --with-net $(CDROM_DIR)/$(SNAME)/initrd0 $(KVER)
+
+       cp -vf /boot/ipfirekernel-$(KVER) $(CDROM_DIR)/$(SNAME)/$(SNAME)0
+       cp -vf /usr/share/syslinux/vesamenu.c32 \
+               $(DIR_CONF)/bootloader/splash.{jpg,lss} \
+               $(DIR_CONF)/bootloader/*.msg $(CDROM_DIR)/$(SNAME)/
+
+       cp -vf /usr/share/syslinux/pxelinux.0 $(CDROM_DIR)/
+       sed     -e "s/SNAME/$(SNAME)/g" \
+               -e "s/NAME/$(NAME)/g" \
+               -e "s/VERSION/$(VERSION)/g" \
+               -e "s@$(SNAME)0@$(SNAME)/$(SNAME)0@g" \
+               -e "s@initrd0@$(SNAME)/initrd0@g" \
+               -e "s@splash@$(SNAME)/splash@g" \
+               -e "s@vesamenu.c32@$(SNAME)/vesamenu.c32@g" \
+               $(DIR_CONF)/bootloader/installer.conf \
+               > $(CDROM_DIR)/pxelinux.cfg/$(SNAME)-pxe-$(VERSION).model
+
+       sed -e "s@splash@$(SNAME)/splash@g" \
+               -i $(CDROM_DIR)/$(SNAME)/boot.msg
+
+       cd $(CDROM_DIR) && \
+               tar cfz $(IMAGES_DIR)/$(IMAGENAME).pxe.tar.gz *
+
+       @rm -rf $(PXE_DIR)/*