Fixes: - fix(systemd-udevd): handle root=gpt-auto for systemd-v258 - fix(systemd-repart): allow partition format - feat(install.d): do not remove UKIs on remove) - fix(dracut.install): remove extraneous quotes in dracut arguments - feat(i18n): pull 'drm' or 'simpledrm' module unless excluded Additional changes: - remove redundant patch for test/container - include previously omitted test changes - patch renames because they're imported from source-git Resolves: RHEL-111580,RHEL-111709,RHEL-113071,RHEL-119787,RHEL-132571 From-source-git-commit: 3048090e3ff7e9747936dd18e4557a4f1ebabdd6
50 lines
1.8 KiB
Diff
50 lines
1.8 KiB
Diff
From 0baf5e0b6c1370b51a20327bd67e0260fc9f8f2e Mon Sep 17 00:00:00 2001
|
|
From: Adam Williamson <awilliam@redhat.com>
|
|
Date: Thu, 10 Jul 2025 10:33:21 -0700
|
|
Subject: [PATCH 15/31] Revert "chore: remove unused function"
|
|
|
|
This reverts commit 81ddde54051351ea17dbb84ef6232820f96740af.
|
|
dracut itself may not use inst_library, but external modules do,
|
|
at least anaconda's does.
|
|
|
|
(cherry picked from commit da64b204418753abce4090892831429c03239fa7)
|
|
|
|
Related: RHEL-97473
|
|
---
|
|
dracut-init.sh | 19 +++++++++++++++++++
|
|
1 file changed, 19 insertions(+)
|
|
|
|
diff --git a/dracut-init.sh b/dracut-init.sh
|
|
index 9be00c56..749801fc 100755
|
|
--- a/dracut-init.sh
|
|
+++ b/dracut-init.sh
|
|
@@ -350,6 +350,25 @@ dracut_instmods() {
|
|
fi
|
|
}
|
|
|
|
+# this is not used within dracut itself, but external modules use it,
|
|
+# do not remove it!
|
|
+inst_library() {
|
|
+ local _ret _hostonly_install
|
|
+ if [[ $1 == "-H" ]]; then
|
|
+ _hostonly_install="-H"
|
|
+ shift
|
|
+ fi
|
|
+ [[ -e ${initdir}/"${2:-$1}" ]] && return 0 # already there
|
|
+ [[ -e $1 ]] || return 1 # no source
|
|
+ if $DRACUT_INSTALL ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} ${_hostonly_install:+-H} "$@"; then
|
|
+ return 0
|
|
+ else
|
|
+ _ret=$?
|
|
+ derror FAILED: "$DRACUT_INSTALL" ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} ${_hostonly_install:+-H} "$@"
|
|
+ return $_ret
|
|
+ fi
|
|
+}
|
|
+
|
|
inst_binary() {
|
|
local _ret
|
|
if $DRACUT_INSTALL ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} "$@"; then
|
|
--
|
|
2.52.0
|
|
|