dracut: Install an IPFire system configuration file

This file contains our custom settings:

* Always load microcodes as early as possible

* We now compress the initrd using Zstandard which is substanstically
  faster than XZ, but offers better compression ratios

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2022-03-11 14:43:39 +00:00
parent e38fb3f63a
commit d8db858769
4 changed files with 8 additions and 58 deletions

View File

@@ -1,57 +0,0 @@
# PUT YOUR CONFIG HERE OR IN separate files named *.conf
# in /etc/dracut.conf.d
# SEE man dracut.conf(5)
# Sample dracut config file
#logfile=/var/log/dracut.log
#fileloglvl=6
# Exact list of dracut modules to use. Modules not listed here are not going
# to be included. If you only want to add some optional modules use
# add_dracutmodules option instead.
#dracutmodules+=""
# dracut modules to omit
#omit_dracutmodules+=""
# dracut modules to add to the default
#add_dracutmodules+=""
# additional kernel modules to the default
add_drivers+="xen_blkfront"
# skip kernel modules (marvell sdio and compat from backports)
omit_drivers+="libertas libertas_sdio mwifiex mwifiex_sdio compat"
# list of kernel filesystem modules to be included in the generic initramfs
filesystems+="reiserfs vfat xfs"
# build initrd only to boot current hardware
#hostonly="yes"
#
# Load microcode for the CPU early
early_microcode=yes
# install local /etc/mdadm.conf
#mdadmconf="no"
# install local /etc/lvm/lvm.conf
#lvmconf="no"
# A list of fsck tools to install. If it's not specified, module's hardcoded
# default is used, currently: "umount mount /sbin/fsck* xfs_db xfs_check
# xfs_repair e2fsck jfs_fsck reiserfsck btrfsck". The installation is
# opportunistic, so non-existing tools are just ignored.
#fscks=""
# inhibit installation of any fsck tools
#nofscks="yes"
# mount / and /usr read-only by default
#ro_mnt="no"
# set the directory for temporary files
# default: /var/tmp
#tmpdir=/tmp

View File

@@ -0,0 +1,5 @@
# Load microcode for the CPU early
early_microcode="yes"
# Compress using Zstandard
compress="zstd"

View File

@@ -13,6 +13,7 @@ usr/lib/dracut/dracut-logger.sh
usr/lib/dracut/dracut-util
usr/lib/dracut/dracut-version.sh
usr/lib/dracut/dracut.conf.d
usr/lib/dracut/dracut.conf.d/ipfire.conf
#usr/lib/dracut/modules.d
usr/lib/dracut/modules.d/00bash
usr/lib/dracut/modules.d/00bash/module-setup.sh

View File

@@ -74,7 +74,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install sbindir=/sbin sysconfdir=/etc
cp -vf $(DIR_SRC)/config/dracut/dracut.conf /etc/dracut.conf
cp -vf $(DIR_SRC)/config/dracut/ipfire.conf \
/usr/lib/dracut/dracut.conf.d/ipfire.conf
@rm -rf $(DIR_APP)
@$(POSTBUILD)