mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Installer: Add installmedia download support.
This commit is contained in:
14
lfs/initrd
14
lfs/initrd
@@ -1,7 +1,7 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
|
||||
# Copyright (C) 2010 IPFire Team <info@ipfire.org> #
|
||||
# #
|
||||
# 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 #
|
||||
@@ -56,6 +56,10 @@ $(TARGET) :
|
||||
|
||||
# Copy Files packages for installer
|
||||
find $(DIR_SRC)/config/rootfiles/installer/* -maxdepth 1 | xargs cat | grep -v "^#" > /tmp/ROOTFILES
|
||||
|
||||
# Patch Kernel Version to rootfiles
|
||||
sed -e "s/KVER/$(KVER)/g" -i /tmp/ROOTFILES
|
||||
|
||||
-cd / && cpio -d -p /install/initrd < /tmp/ROOTFILES
|
||||
|
||||
cd /install/initrd/etc && rm -f fstab
|
||||
@@ -71,11 +75,15 @@ $(TARGET) :
|
||||
-mkdir -p /install/{images,mnt}
|
||||
rm -rf /install/mnt/*
|
||||
|
||||
cp -aR /install/initrd/* /install/mnt
|
||||
|
||||
#Build Module deps for installer.
|
||||
depmod -a -b /install/initrd/ -F /boot/System.map-$(KVER)-ipfire $(KVER)-ipfire
|
||||
# Remove binary depmod files
|
||||
rm -rf /install/initrd/lib/modules/$(KVER)-ipfire/modules.*.bin
|
||||
|
||||
#Name service from dhcpcd
|
||||
cp -f /etc/nsswitch.conf /install/initrd/etc/
|
||||
cp -f $(DIR_SRC)/config/initrd/dhcpc/* /install/initrd/var/ipfire/dhcpc/dhcpcd-hooks/
|
||||
|
||||
cd /install/initrd && find . | cpio -o -H newc | lzma > /install/images/initrd
|
||||
cd /install/initrd && find ./ -ls > $(DIR_INFO)/_build.initrd.log
|
||||
|
||||
|
||||
@@ -61,6 +61,9 @@ $(TARGET) :
|
||||
-DNAME='\"$(NAME)\"' -DSNAME='\"$(SNAME)\"' -DVERSION='\"$(VERSION)\"' \
|
||||
-DSLOGAN='\"$(SLOGAN)\"' -DCONFIG_ROOT='\"$(CONFIG_ROOT)\"' -DKERNEL_VERSION='\"$(KVER)\"'"
|
||||
cd $(DIR_APP)/install && install -v -m 0755 install probenic.sh \
|
||||
probehw.sh mountsource.sh mountdest.sh /install/initrd/bin
|
||||
probehw.sh downloadsource.sh mountsource.sh mountdest.sh /install/initrd/bin
|
||||
#Patch ISO Name for download ...
|
||||
sed -i -e "s|ipfire.iso|$(SNAME)-$(VERSION).$(MACHINE)-full-core$(CORE).iso|g" \
|
||||
/install/initrd/bin/downloadsource.sh
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user