Skip to content

Commit

Permalink
fix: add a missing tmpfilesconfdir global variable
Browse files Browse the repository at this point in the history
Adding a missing tmpfilesconfdir global variable
  • Loading branch information
johannbg authored and haraldh committed May 6, 2021
1 parent 2b61be3 commit 8849dd8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1768,6 +1768,11 @@ if ! [[ -d $dracutsysrootdir$tmpfilesdir ]]; then
[[ -d $dracutsysrootdir/usr/lib/tmpfiles.d ]] && tmpfilesdir=/usr/lib/tmpfiles.d
fi
[[ -d $dracutsysrootdir$tmpfilesconfdir ]] \
|| tmpfilesconfdir=$(pkg-config systemd --variable=tmpfilesconfdir 2> /dev/null)
[[ -d $dracutsysrootdir$tmpfilesconfdir ]] || tmpfilesconfdir=/etc/tmpfiles.d
[[ -d $dracutsysrootdir$depmodd ]] \
|| sysctld=$(pkg-config libkmod --variable=depmodd 2> /dev/null)
Expand All @@ -1794,7 +1799,8 @@ export initdir dracutbasedir \
modulesloadconfdir sysctl sysctlconfdir sysusers sysusersconfdir \
systemdutildir systemdutilconfdir systemdcatalog systemdntpunits \
systemdntpunitsconfdir systemdsystemunitdir systemdsystemconfdir \
hostonly_cmdline loginstall tmpfilesdir depmodd depmodconfdir
hostonly_cmdline loginstall tmpfilesdir tmpfilesconfdir depmodd \
depmodconfdir
mods_to_load=""
# check all our modules to see if they should be sourced.
Expand Down
1 change: 0 additions & 1 deletion modules.d/01systemd-tmpfiles/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ install() {
# Excluding "$tmpfilesdir/systemd-pstore.conf", belongs in seperated pstore module
# Excluding "$tmpfilesdir/x11.conf", belongs in seperated x11 module


inst_multiple -o \
/usr/lib/group \
/usr/lib/passwd \
Expand Down

0 comments on commit 8849dd8

Please sign in to comment.