]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
dracut: Install an IPFire system configuration file
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 11 Mar 2022 14:43:39 +0000 (14:43 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 14 Mar 2022 15:18:21 +0000 (15:18 +0000)
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>
config/dracut/dracut.conf [deleted file]
config/dracut/ipfire.conf [new file with mode: 0644]
config/rootfiles/common/dracut
lfs/dracut

diff --git a/config/dracut/dracut.conf b/config/dracut/dracut.conf
deleted file mode 100644 (file)
index 7473635..0000000
+++ /dev/null
@@ -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
diff --git a/config/dracut/ipfire.conf b/config/dracut/ipfire.conf
new file mode 100644 (file)
index 0000000..bab5c8a
--- /dev/null
@@ -0,0 +1,5 @@
+# Load microcode for the CPU early
+early_microcode="yes"
+
+# Compress using Zstandard
+compress="zstd"
index 3143f49c38b43274d94de983fbb128b8a7f2a7eb..d172898ee2174fe9fc145c9277bba8e50d0ffb8f 100644 (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
index 26c0c0cf6a97ab48ef1222145ac2e2302ee1ca92..426869d20da67b351c1fc449789e46fce7e47a45 100644 (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)