From de96fadddfd523f56065cef975c5e69af4d02f1a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 31 Jul 2011 00:28:06 +0200 Subject: [PATCH] dracut: Split package into several subpackages. -network contains all hooks that require network components. As a firewall, it is very uncommon to boot from a network device and so we don't need that and drop a lot of dependencies. -utils contains a couple of tools for displaying the content of the initrd and stuff. --- pkgs/dracut/dracut.nm | 66 ++++++++++++++++++++++++++++++++++++++--- pkgs/dracut/ipfire.conf | 7 +++++ 2 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 pkgs/dracut/ipfire.conf diff --git a/pkgs/dracut/dracut.nm b/pkgs/dracut/dracut.nm index c90c5aad3..dffd2a4a7 100644 --- a/pkgs/dracut/dracut.nm +++ b/pkgs/dracut/dracut.nm @@ -26,7 +26,7 @@ include $(PKGROOT)/Include PKG_NAME = dracut PKG_VER = 010 -PKG_REL = 1 +PKG_REL = 2 PKG_ARCH = noarch PKG_MAINTAINER = @@ -35,9 +35,25 @@ PKG_URL = http://sourceforge.net/apps/trac/dracut/wiki PKG_LICENSE = GPLv2+ PKG_SUMMARY = Initramfs generator using udev. -PKG_DEPS += bash bzip2 cpio coreutils dmraid e2fsprogs eject gzip \ - iproute2 iputils kbd less libselinux lvm2 mdadm multipath-tools \ - sysvinit udev util-linux which +PKG_DEPS-dracut += \ + bash \ + bzip2 \ + cpio \ + coreutils \ + dmraid \ + e2fsprogs \ + eject \ + gzip \ + iputils \ + kbd \ + less \ + libselinux \ + lvm2 \ + mdadm \ + sysvinit \ + udev \ + util-linux \ + which define PKG_DESCRIPTION dracut is a new, event-driven initramfs infrastructure based around udev. @@ -60,4 +76,46 @@ endef define STAGE_INSTALL cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \ sbindir=/sbin sysconfdir=/etc mandir=/usr/share/man + + # Install local configuration. + -mkdir -pv $(BUILDROOT)/etc/dracut.conf.d + cp -vf $(DIR_SOURCE)/ipfire.conf $(BUILDROOT)/etc/dracut.conf.d/ipfire.conf +endef + +# Network package +PKG_PACKAGES += dracut-network + +PKG_SUMMARY-dracut-network = Network support for the initramdisk. +define PKG_DESCRIPTION-dracut-network + This package requires everything which is needed to build a generic + all purpose initramfs with network support with dracut. +endef + +PKG_DEPS-dracut-network = \ + bridge-utils \ + dhclient \ + iproute \ + nfs-utils + +define PKG_FILES-dracut-network + /usr/share/dracut/modules.d/40network + /usr/share/dracut/modules.d/95fcoe + /usr/share/dracut/modules.d/95iscsi + /usr/share/dracut/modules.d/95nbd + /usr/share/dracut/modules.d/95nfs + /usr/share/dracut/modules.d/45ifcfg + /usr/share/dracut/modules.d/95znet +endef + +# Utils package +PKG_PACKAGES += dracut-utils + +PKG_SUMMARY-dracut-utils = Command line utils for dracut. +define PKG_DESCRIPTION-dracut-utils + Command line utils for dracut. +endef + +define PKG_FILES-dracut-utils + /sbin/dracut-* + /sbin/*initrd endef diff --git a/pkgs/dracut/ipfire.conf b/pkgs/dracut/ipfire.conf new file mode 100644 index 000000000..b27d6245b --- /dev/null +++ b/pkgs/dracut/ipfire.conf @@ -0,0 +1,7 @@ +# Dracut config file customized for IPFire. + +# i18n +i18n_vars="/etc/vconsole.conf:KEYTABLE-KEYMAP,SYSFONT-FONT,FONTACM-FONT_MAP,FONT_UNIMAP" +#add_dracutmodules+=" " +stdloglvl=3 +prefix=/run/initramfs -- 2.39.5