dracut: Update to version 113
Commit Message
- Update from version 112 to 113
- Update of rootfile
- dracut-install moved from /usr/lib/dracut/ to /usr/bin/
- "64-btrfs.rules is installed by udev/eudev since Sep 2012, and tried to
be used by dracut instead of its custom btrfs implementation since Feb 2013.
This code has been dead ever since: `inst_rules()` always returns 0, both today
and even back then. That means 80-btrfs.rules, btrfs_device_ready.sh and
btrfs_finished.sh are not being installed since 2013, so it's safe to remove
them from our codebase."
- install dracut-extractinitrd to bindir
- 13 security vulnerability fixes applied - some CVE, some GHSA and others withg no ID.
- Changelog
113
Notes
It is now possible to put compressed kernel modules and firmware in an uncompressed cpio archive
busybox as an initramfs userspace is now a supported alternative to GNU coreutils
Various improvements have been made to support cross-target builds
Helper programs are now installed to /usr/bin instead of a private directory
A new dracut-extractinitrd helper has been added
The dracut-skipcpio helper has been dropped
There is now improved support for RISC-V and Qualcomm X1/X2 systems
Several security fixes are included in this release:
base:
sanitize message written by die() to the emergency hook (c4d55571)
integrity:
parse masterkey config as data (0d77a760)
parse mutable-root config as data (7e55e0a4)
iscsi:
sanitize netroot= value passed to initqueue scripts (6b290cf1)
normalize the target name in the generated netroot= (48f8b026)
do not source the boot-time net-lib.sh into module-setup.sh, a fix for the above (e7db0f18)
net-lib:
normalize iSCSI target names on the iqn./eui./naa. path (da39dde8)
validate iSCSI port parameters (c8bf7dc5)
use strip_non_digits() to validate iSCSI LUN parameters (b4f5fe23)
network-legacy:
sanitize values written to /tmp/net.${netif}.override (4b441529)
sanitize values written to /tmp/net.${netif}.gw (3756c10e)
sanitize values written to /tmp/net.${netif}.hostname (5808ab3e)
strip DHCP-supplied domain to a safe charset (3b35d14c)
Features
install dracut-extractinitrd to bindir (ab0c490f)
set dracutbasedir based on install location (d076dfc4)
install dracut-install to bindir (922657c5)
install dracut-cpio to bindir (d7f04ad7)
build C binaries in top-level directory (c8f36feb)
put compressed kernel modules and firmware in an uncompressed cpio (5004ba20)
add extractinitrd (07ce5cfa)
Makefile: switch from gnu99 to gnu11 by default (00c62abe)
base: add get_user function (49f25cca)
busybox: run before 80base so applets replace host binaries (04eb6dd1)
debian.conf: prefer busybox (aa2229dc)
dracut: add --prefer option (4b8c11c0)
dracut-initramfs-restore:
use extractinitrd (83873dc7)
support 3cpio (8b683e6a)
lsinitrd: use extractinitrd (caba9a16)
rngd: only install rngd dracut module if explicitly included (99fb7ec6)
rt: make dracut-initramfs-restore.sh POSIX compatible (a85b585d)
systemd-journald: remove libgcrypt from add_dlopen_features (5308fba9)
Performance
replace "sort | uniq" by "sort -u" (0407d090)
bluetooth: do not try to install 60-persistent-input.rules (c19375ea)
btrfs:
do not try to install btrfs-zero-log (c63cf55a)
remove dead code for the missing 64-btrfs.rules case (c9838e08)
dmsquash-live: call blkid only if needed (00293e58)
lsinitrd: call extractor only once in extract_squash_img (0430cb4a)
Bug Fixes
make *-lib.sh executable (e9c73e21)
Dockerfile-gentoo: prevent failures from being ignored (d0d2f4ff)
Makefile:
use -rf for cleaning src/dracut-cpio/target/ (eaea8e05)
remove src/dracut-cpio/target/ on clean (c22d7551)
NEWS: correct setext heading underline length (91eeb04c)
base:
allow loading dracut-lib.sh with set -e (fc0befb6)
allow loading dracut-lib.sh with set -u (e29f2fa8)
check first argument in load_fstype() (435cef6f)
support readlink applet from busybox (4e620003)
support blkid applet from busybox (081a29e6)
drop replacing switch_root from busybox (852d6c75)
make shell fallback work when shell-interpreter is not included (11c6a836)
sanitize message written by die() to the emergency hook (c4d55571)
bluetooth:
always install HID drivers that can be needed (6db4a004, closes #2771)
mark installed hostonly files (bb00278d)
do not warn if this module is included via --prefer (0a6a30da)
busybox:
do not install blkid unconditionally (059d602d)
do not install sulogin applet (0ea1933e)
do not install losetup applet (cd772fb4)
do not install nbd-client applet (c051f59e)
do not install mke2fs applet (38247fbc)
do not install mount applet (9dcc127e)
do not install blkid if udev rules need -o (89e3c00d)
allow overriding list of applets (ead7b349)
do not rely on CONFIG_FEATURE_INSTALLER=y (98306da0)
use --list-full instead of --list-all (250e621f)
use full path provided by busybox --list-all (fcf3abd1)
chrony: support _chrony username (5ee731b6)
cli:
inst_symlink: check for link in sysroot, if any (990d596c)
remove duplicate dracutbasedir definition (e5172767)
correctly detect Btrfs UUID for fsfreeze check (069f40b6)
convertfs: support find applet from busybox (deb14ebb)
devicetree-firmware:
include Qualcomm X2 laptop model specific firmwares (911aeed0)
include soc specific firmwares in install_generic() (48e66ead)
dmsquash-live: support umount applet from busybox (8bc69aed)
dmsquash-live-autooverlay: support grep applet from busybox (84d912fc)
dracut:
export prefer_dracutmodules to be used in dracut modules (f2990cba)
correct order of "Creating image" log line (1de52aca)
support dracutsysrootdir in create_directories (9536c09f)
disable hostonly-cmdline by default in container (1a32e7fe)
remove unused systemduserconfdir variable (abfb2900)
remove unused systemdportableconfdir variable (d8a46e6d)
remove unused environmentconfdir variable (1a66d3eb)
--remove allows to remove files from the host filesystem (1abc4e05)
--remove globbing does not work (c000b3fd)
dracut-functions:
support head applet from busybox (305a51de)
typo in log function (8993ac6d)
dracut-install: warn about missing source files (f7b2acbc)
dracut-systemd:
mark dracut-shutdown.service as WantedBy=sysinit.target (0f4df681)
actually make rd.break=pre-trigger stop before pre-trigger (a122c1fc)
drm:
include the SpacemiT K3 DisplayPort PHY module (6842f083)
also include i2c/panel/bridge/backlight modules on riscv64 (1cddd62b)
add leds-qcom-lpg to aarch64 specific modules needed by drm (6fe62db5)
extractinitrd:
retry waitpid on EINTR in wait_for_child (90726b22)
create leading directories when extracting a selection (2890b3ef)
pass through SIGPIPE (fd020e5a)
report exit status and terminating signal on failure (2f28176e)
report waitpid failures separately (c4a19ab6)
fcoe: do not produce an error if there is no configuration in /etc/fcoe (6bdc8685)
fips: detect FIPS mode from /proc/sys/crypto/fips_enabled (a82ee112)
functions:
standardize messages from require_{binaries,any_binary} (5d55d1c2)
require_binaries: log missing binaries at "info" level (9334e6d8)
do not try to install rules from $dracutbasedir/rules.d (9875572b)
ignore local dracut-install if not in source dir (88120dc1)
avoid spurious warning for inst_simple -H (a83d800d)
warn about missing source in inst_simple (01093593)
hwdb: always install this module, except in strict hostonly mode (3a737fc5, closes #2534)
i18n:
install locale.conf in hostonly mode with i18n_install_all (f8aed401)
support find applet from busybox in module-setup.sh (e241be2e)
initqueue: enable dracut-initqueue.service using systemctl (a0ffd1c1)
install: do not allow empty --sysrootdir (a57e4d48)
integrity:
silence SC2034 for variables set for the caller (88c6a488)
parse masterkey config as data (0d77a760)
parse mutable-root config as data (7e55e0a4)
iscsi:
sanitize netroot= value passed to initqueue scripts (6b290cf1)
normalize the target name in the generated netroot= (48f8b026)
do not source the boot-time net-lib.sh into module-setup.sh (e7db0f18)
lsinitrd:
write warnings to stderr (2b70bd41)
write complete error message to stderr (eb4caade)
use "find -exec ls" instead of "find -ls" (b1050191)
do no sort cpio output if not needed (8aff42ba)
lvm:
unset DM_VG_NAME and DM_LV_NAME in each iteration (9f6ded70)
drop stray leading and trailing spaces from generated cmdline (0b9c2677)
install the LVM system ID file again (16169997)
deduplicate rd.lvm.lv= arguments in cmdline() (fa6d9d12)
check all host devices in cmdline() (203703d0)
lvmmerge: support umount applet from busybox (0ed2a3b9)
net-lib:
validate iSCSI port parameters (c8bf7dc5)
source dracut-lib.sh in net-lib.sh (ab92387f)
normalize iSCSI target names on the iqn./eui./naa. path (da39dde8)
network-legacy:
do not quote parse_option_121 parameters (a68ea0b9)
sanitize values written to /tmp/net.${netif}.override (4b441529)
sanitize values written to /tmp/net.${netif}.gw (3756c10e)
sanitize values written to /tmp/net.${netif}.hostname (5808ab3e)
strip DHCP-supplied domain to a safe charset (3b35d14c)
nvmf:
prevent nvmf's installkernel failure when no nbft present (5f444db1)
use plain name for upstream udev rules (efa101e8)
avoid endless loop in nbft_parse() (0f58bd72)
print right invalid arguments in parse_nvmf_discover() (4cd07c60)
selinux: support umount applet from busybox (e767d6a6)
shell-completion: add missing --remove option (338cac1b)
shutdown: make "timeout" call busybox-compatible (8f5c7dd8)
squash-lib: mirror host merged-usr symlinks in the squash loader (f971f923)
systemd: move systemd-network user/group creation to systemd-networkd (04e04cfe)
systemd-cryptsetup:
check all crypttab entries for socket key files (112c5caa)
use POSIX for matching spaces in grep (21c8c081)
support grep applet from busybox in module-setup.sh (a2a82890)
systemd-pcrextend: add systemd-pcrextend.socket (a231d481)
systemd-resolved: use the same UID/GID for the systemd-resolve user/group (03c4138e)
systemd-udevd:
support busybox for loginctl override (d30ccfcf)
do not install loginctl override in /bin (4afa547a)
test: support empty /etc/machine-id (84537992)
tests:
delete /run/initramfs/dracut.conf.d only in container (cb06b110)
delete /run/initramfs/dracut.conf.d during cleanup (8f1e5db0)
url-lib:
check error if curl fails in subshell (aa5f7631)
support grep applet from busybox in module-setup.sh (40d0ea72)
zipl: strip /dev/ prefix for the KERNEL udev match (fd8118c8)
znet: support mktemp applet from busybox in module-setup.sh (dcbe20e1)
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
config/rootfiles/common/dracut | 13 ++++++-------
lfs/dracut | 4 ++--
2 files changed, 8 insertions(+), 9 deletions(-)
@@ -2,12 +2,13 @@ etc/dracut.conf
etc/dracut.conf.d
usr/bin/dracut
usr/bin/dracut-catimages
+usr/bin/dracut-extractinitrd
+usr/bin/dracut-install
usr/bin/lsinitrd
#usr/lib/dracut
usr/lib/dracut/dracut-functions
usr/lib/dracut/dracut-functions.sh
usr/lib/dracut/dracut-initramfs-restore
-usr/lib/dracut/dracut-install
usr/lib/dracut/dracut-logger.sh
usr/lib/dracut/dracut-util
usr/lib/dracut/dracut.conf.d
@@ -15,6 +16,8 @@ usr/lib/dracut/dracut.conf.d/01-ipfire.conf
#usr/lib/dracut/modules.d
usr/lib/dracut/modules.d/10bash
usr/lib/dracut/modules.d/10bash/module-setup.sh
+#usr/lib/dracut/modules.d/10busybox
+#usr/lib/dracut/modules.d/10busybox/module-setup.sh
#usr/lib/dracut/modules.d/10dash
#usr/lib/dracut/modules.d/10dash/module-setup.sh
#usr/lib/dracut/modules.d/10systemd
@@ -186,9 +189,6 @@ usr/lib/dracut/modules.d/45drm/module-setup.sh
#usr/lib/dracut/modules.d/70bluetooth
#usr/lib/dracut/modules.d/70bluetooth/module-setup.sh
usr/lib/dracut/modules.d/70btrfs
-usr/lib/dracut/modules.d/70btrfs/80-btrfs.rules
-usr/lib/dracut/modules.d/70btrfs/btrfs_device_ready.sh
-usr/lib/dracut/modules.d/70btrfs/btrfs_finished.sh
usr/lib/dracut/modules.d/70btrfs/btrfs_timeout.sh
usr/lib/dracut/modules.d/70btrfs/module-setup.sh
#usr/lib/dracut/modules.d/70crypt
@@ -429,6 +429,7 @@ usr/lib/dracut/modules.d/74udev-rules/module-setup.sh
#usr/lib/dracut/modules.d/76biosdevname/parse-biosdevname.sh
#usr/lib/dracut/modules.d/76masterkey
#usr/lib/dracut/modules.d/76masterkey/README
+#usr/lib/dracut/modules.d/76masterkey/masterkey-lib.sh
#usr/lib/dracut/modules.d/76masterkey/masterkey.sh
#usr/lib/dracut/modules.d/76masterkey/module-setup.sh
#usr/lib/dracut/modules.d/76systemd-emergency
@@ -478,6 +479,7 @@ usr/lib/dracut/modules.d/77initqueue/module-setup.sh
#usr/lib/dracut/modules.d/77integrity/README
#usr/lib/dracut/modules.d/77integrity/evm-enable.sh
#usr/lib/dracut/modules.d/77integrity/ima-keys-load.sh
+#usr/lib/dracut/modules.d/77integrity/ima-lib.sh
#usr/lib/dracut/modules.d/77integrity/ima-policy-load.sh
#usr/lib/dracut/modules.d/77integrity/module-setup.sh
#usr/lib/dracut/modules.d/77pollcdrom
@@ -509,8 +511,6 @@ usr/lib/dracut/modules.d/80base/module-setup.sh
usr/lib/dracut/modules.d/80base/parse-kernel.sh
usr/lib/dracut/modules.d/80base/parse-root-opts.sh
usr/lib/dracut/modules.d/80base/rdsosreport.sh
-#usr/lib/dracut/modules.d/81busybox
-#usr/lib/dracut/modules.d/81busybox/module-setup.sh
#usr/lib/dracut/modules.d/84memstrack
#usr/lib/dracut/modules.d/84memstrack/memstrack-report.sh
#usr/lib/dracut/modules.d/84memstrack/memstrack-start.sh
@@ -526,7 +526,6 @@ usr/lib/dracut/modules.d/80base/rdsosreport.sh
#usr/lib/dracut/modules.d/88squash-lib
#usr/lib/dracut/modules.d/88squash-lib/init-squash.sh
#usr/lib/dracut/modules.d/88squash-lib/module-setup.sh
-usr/lib/dracut/skipcpio
#usr/lib/kernel
#usr/lib/kernel/install.d
#usr/lib/kernel/install.d/50-dracut.install
@@ -24,7 +24,7 @@
include Config
-VER = 112
+VER = 113
THISAPP = dracut-$(VER)
DL_FILE = $(THISAPP).tar.gz
@@ -40,7 +40,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = 8affe092f6876ba52f59e08b33341c108c378f97f761b638f1d4f5520399aa87bb4bbafb362f5edc15fdabd3ebf0c7acec667ee3762535f9b780da522886f205
+$(DL_FILE)_BLAKE2 = 6e15853b5a29c201628d7b18623bb441e0162381985df92a05d81e3bce58d2f12dcc251eb42167dbe149162a3dac99d85d255bbf69be333734193d5fa198c0e9
install : $(TARGET)