public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jeremy Cline <jeremycline@linux.microsoft.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: WSL: Install wsl-distribution.conf in /usr/lib
Date: Mon, 10 Aug 2026 09:36:44 GMT	[thread overview]
Message-ID: <178635460403.1.502059441823299112.rpms-fedora-release-deb10b6dbf9f@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-08-10  9:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178635460403.1.502059441823299112.rpms-fedora-release-deb10b6dbf9f@fedoraproject.org \
    --to=jeremycline@linux.microsoft.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox