diff options
author | Morten Linderud <morten@linderud.pw> | 2023-08-06 21:46:53 +0200 |
---|---|---|
committer | Morten Linderud <morten@linderud.pw> | 2023-08-06 21:46:53 +0200 |
commit | 36f9f3e43919a1f7c4f82b9cc45da04521d035d2 (patch) | |
tree | 2adf5e3a181fc50586fdb971c4a84228eba7c880 | |
parent | b0c109f1f3f936eeba395a7c9598a7d280df0323 (diff) | |
parent | 5720e5ac6733f5751aa8ba79650655efbb2b4117 (diff) |
Merge remote-tracking branch 'origin/merge-requests/249'
* origin/merge-requests/249:
Support symlinks in cmdline.d too
Allow symlinks for drop-in .conf files
-rwxr-xr-x | mkinitcpio | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -393,7 +393,7 @@ build_uki() { cmdline_files+=("/usr/lib/kernel/cmdline") fi if [[ -d '/etc/cmdline.d' ]]; then - mapfile -d '' -O "${#cmdline_files[@]}" cmdline_files < <(find "/etc/cmdline.d" -type f -name '*.conf' -print0 | sort -zVu) + mapfile -d '' -O "${#cmdline_files[@]}" cmdline_files < <(find "/etc/cmdline.d" -xtype f -name '*.conf' -print0 | sort -zVu) fi fi @@ -877,7 +877,7 @@ BUILDROOT="${_opttargetdir:-$_d_workdir/root}" # Source additional configuration files, if no configuration file has been defined either with "-c" or via preset file if [[ -d "$_d_config" ]] && (( _optconfd )); then - mapfile -d '' conf_files < <(find "$_d_config" -maxdepth 1 -type f -name '*.conf' -print0 | sed -z 's/.*\///' | sort -zVu) + mapfile -d '' conf_files < <(find "$_d_config" -maxdepth 1 -xtype f -name '*.conf' -print0 | sed -z 's/.*\///' | sort -zVu) if (( ${#conf_files[@]} )); then tmpfile="$(mktemp -t mkinitcpio.XXXXXX)" _tmpfiles+=("$tmpfile") |