public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-release] f45: WSL: Install wsl-distribution.conf in /usr/lib
@ 2026-08-10 9:36 Jeremy Cline
0 siblings, 0 replies; only message in thread
From: Jeremy Cline @ 2026-08-10 9:36 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fedora-release
Branch : f45
Commit : deb10b6dbf9f37b57491ebebe7b706159f249cf1
Author : Jeremy Cline <jeremycline@linux.microsoft.com>
Date : 2025-01-22T22:59:56+00:00
Stats : +7/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-release/c/deb10b6dbf9f37b57491ebebe7b706159f249cf1?branch=f45
Log:
WSL: Install wsl-distribution.conf in /usr/lib
This isn't meant to be edited and exists to inform WSL about the
distribution configuration. Install the file in /usr/lib and symlink to
the location WSL expects.
Additionally, mark /etc/wsl.conf as config to not replace on update. It
allows users to configure host drive mounts, the default user, etc.
Signed-off-by: Jeremy Cline <jeremycline@linux.microsoft.com>
---
diff --git a/fedora-release.spec b/fedora-release.spec
index a49294e..5bf5f52 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -1990,7 +1990,11 @@ sed -e "s#\$version#%{bug_version}#g" -e 's/$edition/COSMICAtomic/;s/<!--.*-->//
%endif
%if %{with wsl}
-install -pm0644 -t %{buildroot}%{_sysconfdir}/ %{SOURCE37} %{SOURCE38}
+install -pm0644 -t %{buildroot}%{_sysconfdir}/ %{SOURCE37}
+
+install -pm0644 -t %{buildroot}%{_prefix}/lib/ %{SOURCE38}
+ln -s ..%{_prefix}/lib/wsl-distribution.conf %{buildroot}%{_sysconfdir}/wsl-distribution.conf
+
install -Dpm0755 -T %{SOURCE39} %{buildroot}%{_libexecdir}/wsl/oobe.sh
cp -p os-release %{buildroot}%{_prefix}/lib/os-release.wsl
echo "VARIANT=\"WSL\"" >> %{buildroot}%{_prefix}/lib/os-release.wsl
@@ -2392,7 +2396,8 @@ install -Dm0644 %{SOURCE31} -t %{buildroot}%{_prefix}/share/dnf5/libdnf.conf.d/
%if %{with wsl}
%files wsl
-%{_sysconfdir}/wsl.conf
+%config(noreplace) %{_sysconfdir}/wsl.conf
+%{_prefix}/lib/wsl-distribution.conf
%{_sysconfdir}/wsl-distribution.conf
%{_libexecdir}/wsl/oobe.sh
%files identity-wsl
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-10 9:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 9:36 [rpms/fedora-release] f45: WSL: Install wsl-distribution.conf in /usr/lib Jeremy Cline
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox