Skip to content

Commit

Permalink
fix(dracut.sh): error exporting sysctl variables
Browse files Browse the repository at this point in the history
- Typo assigning depmodd and depmodconfdir.
- Typo exporting a variable called sysctl instead of sysctld.
  • Loading branch information
aafeijoo-suse authored and johannbg committed Feb 26, 2022
1 parent a33a8df commit 4c355d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 4c355d0

Please sign in to comment.