]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
dracut: Split package into several subpackages.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Jul 2011 22:28:06 +0000 (00:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Jul 2011 22:28:06 +0000 (00:28 +0200)
-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
pkgs/dracut/ipfire.conf [new file with mode: 0644]

index c90c5aad33e527714a7ad7ee82816791726d0533..dffd2a4a7519b995f615cb720fe6e24058ef9cc9 100644 (file)
@@ -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 (file)
index 0000000..b27d624
--- /dev/null
@@ -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