40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
From 4c355d05587b0432a6dc551b8693dbdc51a07962 Mon Sep 17 00:00:00 2001
|
|
From: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
|
|
Date: Thu, 24 Feb 2022 09:36:02 +0100
|
|
Subject: [PATCH] fix(dracut.sh): error exporting sysctl variables
|
|
|
|
- Typo assigning depmodd and depmodconfdir.
|
|
- Typo exporting a variable called sysctl instead of sysctld.
|
|
---
|
|
dracut.sh | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/dracut.sh b/dracut.sh
|
|
index 0a3f59741..afc6fd04c 100755
|
|
--- a/dracut.sh
|
|
+++ b/dracut.sh
|
|
@@ -1798,12 +1798,12 @@ fi
|
|
[[ -d $dracutsysrootdir$tmpfilesconfdir ]] || tmpfilesconfdir=/etc/tmpfiles.d
|
|
|
|
[[ -d $dracutsysrootdir$depmodd ]] \
|
|
- || sysctld=$(pkg-config libkmod --variable=depmodd 2> /dev/null)
|
|
+ || depmodd=$(pkg-config libkmod --variable=depmodd 2> /dev/null)
|
|
|
|
[[ -d $dracutsysrootdir$depmodd ]] || depmodd=/usr/lib/depmod.d
|
|
|
|
[[ -d $dracutsysrootdir$depmodconfdir ]] \
|
|
- || sysctlconfdir=$(pkg-config libkmod --variable=depmodconfdir 2> /dev/null)
|
|
+ || depmodconfdir=$(pkg-config libkmod --variable=depmodconfdir 2> /dev/null)
|
|
|
|
[[ -d $dracutsysrootdir$depmodconfdir ]] || depmodconfdir=/etc/depmod.d
|
|
|
|
@@ -1820,7 +1820,7 @@ export initdir dracutbasedir \
|
|
dbusinterfacesconfdir dbusservices dbusservicesconfdir dbussession \
|
|
dbussessionconfdir dbussystem dbussystemconfdir dbussystemservices \
|
|
dbussystemservicesconfdir environment environmentconfdir modulesload \
|
|
- modulesloadconfdir sysctl sysctlconfdir sysusers sysusersconfdir \
|
|
+ modulesloadconfdir sysctld sysctlconfdir sysusers sysusersconfdir \
|
|
systemdutildir systemdutilconfdir systemdcatalog systemdntpunits \
|
|
systemdntpunitsconfdir systemdsystemunitdir systemdsystemconfdir \
|
|
hostonly_cmdline loginstall tmpfilesdir tmpfilesconfdir depmodd \
|