Skip to content

dracut-113

Latest

Choose a tag to compare

@Conan-Kudo Conan-Kudo released this 21 Nov 18:07
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)

The full detailed breakdown follows.

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:
  • 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:
  • 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)