Bootscripte an den IPFire angepasst.

Ramdisk bearbeitet und Diskettenimages entfernt.
PCMCIA-Utils entfernt.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@381 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2007-01-06 12:55:49 +00:00
parent a10ae6cc7a
commit 55b4c7edc1
21 changed files with 359 additions and 401 deletions

View File

@@ -1,71 +0,0 @@
###############################################################################
# This file is part of the IPCop Firewall. #
# #
# IPCop 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 2 of the License, or #
# (at your option) any later version. #
# #
# IPCop 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 IPCop; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
# #
# Makefiles are based on LFSMake, which is #
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = ipfire
THISAPP = boot-$(VERSION).img
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
install : $(TARGET)
check :
download :
md5 :
###############################################################################
# Installation Details
###############################################################################
$(TARGET) :
if [ "$(MACHINE)" = "i586" ]; 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; \
sed -e 's/boot IPFire/boot IPFire $(VERSION)/' $(DIR_SRC)/config/kernel/install-message \
> /install/mnt/message; \
cp $(DIR_SRC)/config/kernel/syslinux.cfg /install/mnt/syslinux.cfg; \
cp /boot/vmlinuz-$(KVER) /install/mnt/vmlinuz; \
cp /install/images/fdinitrd.gz /install/mnt/instroot.gz; \
umount /install/mnt; \
losetup -d $$LOOPDEV; \
fi

View File

@@ -1,82 +0,0 @@
###############################################################################
# This file is part of the IPCop Firewall. #
# #
# IPCop 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 2 of the License, or #
# (at your option) any later version. #
# #
# IPCop 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 IPCop; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
# #
# Makefiles are based on LFSMake, which is #
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = ipfire
THISAPP = driver-$(VERSION).img
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
install : $(TARGET)
check :
download :
md5 :
###############################################################################
# Installation Details
###############################################################################
$(TARGET) :
@$(PREBUILD)
# make new dependencies
depmod -a -F /boot/System.map-$(KVER) $(KVER)
depmod -a -F /boot/System.map-$(KVER)-smp $(KVER)-smp
# Create drivers floppy
cd /tmp && rm -rf drivers.tgz drivers.tar bin lib etc var
cd / && tar -cf /tmp/drivers.tar \
--exclude=lib/modules/$(KVER)/kernel/{arch,fs} \
--exclude=lib/modules/$(KVER)/kernel/drivers/{acpi,atm,bluetooth,block,char,cdrom,hwmon,ide} \
--exclude=lib/modules/$(KVER)/kernel/drivers/{ieee1394,isdn,mmc,scsi,md,message,video} \
--exclude=lib/modules/$(KVER)/kernel/drivers/net/{wan,ppp*,slip*,slhc*,tun*,wireless} \
--exclude=lib/modules/$(KVER)/kernel/drivers/usb/{atm,input,storage,host} \
--exclude=lib/modules/$(KVER)/kernel/drivers/usb/{3cp4218.ko,acm.ko,amedyn.ko,cxacru.ko} \
--exclude=lib/modules/$(KVER)/kernel/drivers/usb/{speedtch.ko,hid.ko,usbcore.ko,at76c50*.ko} \
--exclude=lib/modules/$(KVER)/kernel/net/{8021q,atm,bluetooth,bridge,ieee80211,ipsec,ipv4} \
--exclude=lib/modules/$(KVER)/kernel/net/{wanrouter,netfilter,sched} \
--exclude=lib/modules/$(KVER)/{build,extra,misc,modules.*,source} \
lib/modules/$(KVER)
cd /tmp && tar xf drivers.tar
cd /tmp && mkdir -p {bin,var/run}
cd /tmp && tar -cf - bin var lib/modules/$(KVER) | gzip -9 -c > drivers.tgz
ls -l /tmp/drivers.tgz
dd if=/tmp/drivers.tgz of=/install/images/drivers-$(VERSION).img bs=2880k count=1 conv=sync
rm -rf /tmp/drivers.tgz /tmp/drivers.tar /tmp/bin /tmp/lib
### If this fails, the disk is TOO FULL !!!!
tar tzf /install/images/drivers-$(VERSION).img >/dev/null 2>&1
@$(POSTBUILD)

View File

@@ -61,6 +61,33 @@ $(TARGET) :
chmod 755 /install/initrd/etc/halt /install/initrd/etc/rc
cp -f /usr/share/terminfo/l/linux /install/initrd/usr/share/terminfo/l
# Install SCSI Drivers
cp -rf /lib/modules/$(KVER)/kernel/drivers/{scsi,message/fusion} \
/lib/modules/$(KVER)/kernel/drivers/block/{DAC960.ko,cpqarray.ko,cciss.ko} \
/lib/modules/$(KVER)/kernel/drivers/ide \
/lib/modules/$(KVER)/kernel/drivers/cdrom \
/lib/modules/$(KVER)/kernel/drivers/ieee1394 \
/install/initrd/lib/modules/$(KVER)/kernel/drivers/
rm -f /install/initrd/lib/modules/$(KVER)/kernel/drivers/message/fusion/mptlan*
# make new dependencies
depmod -a -F /boot/System.map-$(KVER) $(KVER)
depmod -a -F /boot/System.map-$(KVER)-smp $(KVER)-smp
cd / && tar -cvf /tmp/drivers.tar \
--exclude=lib/modules/$(KVER)/kernel/{arch,fs} \
--exclude=lib/modules/$(KVER)/kernel/drivers/{acpi,atm,bluetooth,block,char,cdrom,hwmon,ide} \
--exclude=lib/modules/$(KVER)/kernel/drivers/{ieee1394,isdn,mmc,scsi,md,message,video} \
--exclude=lib/modules/$(KVER)/kernel/drivers/net/{wan,ppp*,slip*,slhc*,tun*,wireless} \
--exclude=lib/modules/$(KVER)/kernel/drivers/usb/{atm,input,storage,host} \
--exclude=lib/modules/$(KVER)/kernel/drivers/usb/{3cp4218.ko,acm.ko,amedyn.ko,cxacru.ko} \
--exclude=lib/modules/$(KVER)/kernel/drivers/usb/{speedtch.ko,hid.ko,usbcore.ko,at76c50*.ko} \
--exclude=lib/modules/$(KVER)/kernel/net/{8021q,atm,bluetooth,bridge,ieee80211,ipsec,ipv4} \
--exclude=lib/modules/$(KVER)/kernel/net/{wanrouter,netfilter,sched} \
--exclude=lib/modules/$(KVER)/{build,extra,misc,modules.*,source} \
lib/modules/$(KVER)
cd /install/initrd/ && tar -xvf /tmp/drivers.tar && rm -f /tmp/drivers.tar
# Extra modules
-mkdir -p /install/initrd/lib/modules/$(KVER)/kernel/drivers/scsi
cp -f /lib/modules/$(KVER)/kernel/drivers/scsi/{scsi_mod.ko,sd_mod.ko,sr_mod.ko} \
@@ -92,34 +119,13 @@ $(TARGET) :
cd /install/initrd/lib/ && ln -sf libgcc_s.so.1 libgcc_s.so
# Floppy initrd
-mkdir -p /install/{images,mnt}
rm -rf /install/mnt/*
cp -aR /install/initrd/* /install/mnt
# cp -a /install/misc/bin/* /install/mnt/bin
# make new dependencies
depmod -a -F /boot/System.map-$(KVER) $(KVER)
touch /install/mnt/FLOPPYBOOT
RAMDISK_SIZE=8192 && \
dd if=/dev/zero of=/install/images/fdinitrd bs=1k count=$${RAMDISK_SIZE}
for i in `seq 0 7`; do \
if (! losetup /dev/loop$${i} >/dev/null 2>&1 ); then \
LOOPDEV="/dev/loop$${i}" \
break; \
fi; \
done && \
losetup $$LOOPDEV /install/images/fdinitrd && \
mke2fs -m 0 -N 1024 $$LOOPDEV && \
mount -t ext2 $$LOOPDEV /install/mnt && \
rm -rf /install/mnt/lost+found && \
cp -aR /install/initrd/* /install/mnt/ && \
cd /install/mnt/ && find ./ -ls > $(DIR_INFO)/_build.fdinitrd && \
cd / && umount /install/mnt && \
losetup -d $$LOOPDEV
gzip -9 /install/images/fdinitrd
RAMDISK_SIZE=16384 && \
dd if=/dev/zero of=/install/images/cdinitrd bs=1k count=$${RAMDISK_SIZE}
@@ -134,8 +140,6 @@ $(TARGET) :
mount -t ext2 $$LOOPDEV /install/mnt && \
rm -rf /install/mnt/lost+found && \
cp -aR /install/initrd/* /install/mnt/ && \
cd /install/mnt && tar xfz /install/images/drivers-$(VERSION).img && \
cd /install/mnt && tar xfz /install/images/scsidrv-$(VERSION).img && \
cd /install/mnt/ && find ./ -ls > $(DIR_INFO)/_build.cdinitrd && \
touch /install/mnt/CDROMBOOT && \
cd / && umount /install/mnt && \

View File

@@ -73,9 +73,9 @@ $(TARGET) :
ln -sf ../init.d/sysklogd /etc/rc.d/rc0.d/K90sysklogd
ln -sf ../init.d/sendsignals /etc/rc.d/rc0.d/S60sendsignals
ln -sf ../init.d/mountfs /etc/rc.d/rc0.d/S70mountfs
ln -sf ../init.d/swap /etc/rc.d/rc0.d/S80swap
ln -sf ../init.d/localnet /etc/rc.d/rc0.d/S90localnet
ln -sf ../init.d/localnet /etc/rc.d/rc0.d/S70localnet
ln -sf ../init.d/mountfs /etc/rc.d/rc0.d/S80mountfs
ln -sf ../init.d/swap /etc/rc.d/rc0.d/S90swap
ln -sf ../init.d/halt /etc/rc.d/rc0.d/S99halt
ln -sf ../init.d/sysklogd /etc/rc.d/rc3.d/S10sysklogd
ln -sf ../init.d/sysklogd /etc/rc.d/rc6.d/K90sysklogd
@@ -110,6 +110,6 @@ $(TARGET) :
ln -sf ../init.d/localnet /etc/rc.d/rcsysinit.d/S80localnet
ln -sf ../init.d/sysctl /etc/rc.d/rcsysinit.d/S90sysctl
# chgrp nobody /etc/rc.d/rc.red
# chmod 4750 /etc/rc.d/rc.red
chgrp nobody /etc/rc.d/init.d/red
chmod 4750 /etc/rc.d/init.d/red
@$(POSTBUILD)

View File

@@ -1,92 +0,0 @@
###############################################################################
# This file is part of the IPCop Firewall. #
# #
# IPCop 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 2 of the License, or #
# (at your option) any later version. #
# #
# IPCop 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 IPCop; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
# #
# Makefiles are based on LFSMake, which is #
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 014
THISAPP = pcmciautils-$(VER)
DL_FILE = $(THISAPP).tar.bz2
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
ifeq "$(LFS_PASS)" "install"
TARGET = $(DIR_INFO)/$(THISAPP)-install
else
TARGET = $(DIR_INFO)/$(THISAPP)
endif
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_MD5 = 3f07c926875f6c5dcb83240f39725177
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
md5 : $(subst %,%_MD5,$(objects))
###############################################################################
# Downloading, checking, md5sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_MD5,$(objects)) :
@$(MD5)
###############################################################################
# Installation Details
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
ifeq "$(LFS_PASS)" "install"
# cd $(DIR_APP) && make -C cardmgr
# cd $(DIR_APP) && mkdir -p /install/misc/bin
# cd $(DIR_APP) && install -s -m 0755 cardmgr/cardmgr /install/misc/bin
# cd $(DIR_APP) && install -s -m 0755 cardmgr/cardctl /install/misc/bin
else
cd $(DIR_APP) && make
cd $(DIR_APP) && make install
# Install our own extra pcmcia configs
cp $(DIR_SRC)/src/pcmcia/*.conf /etc/pcmcia
endif
@rm -rf $(DIR_APP)
@$(POSTBUILD)

View File

@@ -1,76 +0,0 @@
###############################################################################
# This file is part of the IPCop Firewall. #
# #
# IPCop 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 2 of the License, or #
# (at your option) any later version. #
# #
# IPCop 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 IPCop; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
# #
# Makefiles are based on LFSMake, which is #
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = ipfire
THISAPP = scsi-$(VERSION).img
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
install : $(TARGET)
check :
download :
md5 :
###############################################################################
# Installation Details
###############################################################################
$(TARGET) :
@$(PREBUILD)
# Create SCSI drivers
-mkdir -p /install/images
cd /tmp && rm -rf scsi.tgz scsi.tar bin etc lib var
cd / && tar -cf /tmp/scsi.tar \
lib/modules/$(KVER)/kernel/drivers/{scsi,message/fusion} \
lib/modules/$(KVER)/kernel/drivers/block/{DAC960.ko,cpqarray.ko,cciss.ko} \
lib/modules/$(KVER)/kernel/drivers/ide \
lib/modules/$(KVER)/kernel/drivers/cdrom \
lib/modules/$(KVER)/kernel/drivers/ieee1394
cd /tmp && tar xf scsi.tar
cd /tmp && rm -f lib/modules/$(KVER)/kernel/drivers/message/fusion/mptlan*
cd /tmp && mkdir -p {bin,var/run}
cd /tmp && tar -cf - bin var lib/modules/$(KVER) | gzip -9 -c > scsi.tgz
ls -l /tmp/scsi.tgz
dd if=/tmp/scsi.tgz of=/install/images/scsidrv-$(VERSION).img bs=2880k count=1 conv=sync
rm -f /tmp/scsi.tgz
### If this fails, the disk is TOO FULL !!!!
tar tfz /install/images/scsidrv-$(VERSION).img >/dev/null 2>&1
@$(POSTBUILD)