forked from dracutdevs/dracut
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(systemd*): include systemd config files from /usr/lib/systemd (b…
…sc#1228398) and also use proper variables for the paths. -- The new systemd reads from both /etc and /usr/, so to accomodate this, I've added new paths to install configs from (I probably haven't covered all). This changes only hostonly behaviour; uses global variables: systemdutilconfdir: "/etc/systemd" systemdutildir: "/lib/systemd:/lib/systemd/systemd-udevd" "/usr/lib/systemd:/usr/lib/systemd/systemd-udevd" Ref: https://issues.redhat.com/browse/RHEL-32506 (cherry picked from commit dracut-ng/dracut-ng@6c99c07)
- Loading branch information
1 parent
a89da38
commit 003f23a
Showing
5 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,8 @@ install() { | |
"$systemdutildir"/system-generators/systemd-debug-generator \ | ||
"$systemdutildir"/system-generators/systemd-fstab-generator \ | ||
"$systemdutildir"/system-generators/systemd-gpt-auto-generator \ | ||
"$systemdutildir"/system.conf \ | ||
"$systemdutildir"/system.conf.d/*.conf \ | ||
"$systemdsystemunitdir"/debug-shell.service \ | ||
"$systemdsystemunitdir"/cryptsetup.target \ | ||
"$systemdsystemunitdir"/cryptsetup-pre.target \ | ||
|
@@ -167,8 +169,8 @@ install() { | |
inst_multiple -H -o \ | ||
/etc/systemd/journald.conf \ | ||
/etc/systemd/journald.conf.d/*.conf \ | ||
/etc/systemd/system.conf \ | ||
/etc/systemd/system.conf.d/*.conf \ | ||
"$systemdutilconfdir"/system.conf \ | ||
"$systemdutilconfdir"/system.conf.d/*.conf \ | ||
"$systemdsystemconfdir"/[email protected] \ | ||
"$systemdsystemconfdir/[email protected]/*.conf" \ | ||
/etc/hosts \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ install() { | |
inst_multiple -o \ | ||
"$sysctld"/50-coredump.conf \ | ||
"$systemdutildir"/coredump.conf \ | ||
"$systemdutildir/coredump.conf.d/*.conf" \ | ||
"$systemdutildir"/systemd-coredump \ | ||
"$systemdsystemunitdir"/systemd-coredump.socket \ | ||
"$systemdsystemunitdir"/[email protected] \ | ||
|
@@ -44,7 +45,7 @@ install() { | |
if [[ $hostonly ]]; then | ||
inst_multiple -H -o \ | ||
"$systemdutilconfdir"/coredump.conf \ | ||
"$systemdsystemconfdir/coredump.conf.d/*.conf" \ | ||
"$systemdutilconfdir/coredump.conf.d/*.conf" \ | ||
"$systemdsystemconfdir"/systemd-coredump.socket \ | ||
"$systemdsystemconfdir/systemd-coredump.socket.d/*.conf" \ | ||
"$systemdsystemconfdir"/[email protected] \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters