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: Remove WSL configuration files and setup script
Date: Mon, 10 Aug 2026 09:36:44 GMT	[thread overview]
Message-ID: <178635460448.1.18301089956620238817.rpms-fedora-release-f22e13a114cc@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/fedora-release
            Branch : f45
            Commit : f22e13a114cc4dcfcae59e99fe5e3f6aafe9ee1f
            Author : Jeremy Cline <jeremycline@linux.microsoft.com>
            Date   : 2025-01-23T22:26:22+00:00
            Stats  : +0/-63 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-release/c/f22e13a114cc4dcfcae59e99fe5e3f6aafe9ee1f?branch=f45

            Log:
            Remove WSL configuration files and setup script

Neal Gompa requested these live in a separate package.

---
diff --git a/fedora-release.spec b/fedora-release.spec
index 5bf5f52..83011e6 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -108,9 +108,6 @@ Source33:       plasma-mobile.conf
 Source34:       80-kde-mobile.preset
 Source35:       fedora-miraclewm.conf
 Source36:       fedora-cosmic.conf
-Source37:       wsl.conf
-Source38:       wsl-distribution.conf
-Source39:       wsl-oobe.sh
 
 BuildArch:      noarch
 
@@ -1990,12 +1987,6 @@ sed -e "s#\$version#%{bug_version}#g" -e 's/$edition/COSMICAtomic/;s/<!--.*-->//
 %endif
 
 %if %{with wsl}
-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
 echo "VARIANT_ID=wsl" >> %{buildroot}%{_prefix}/lib/os-release.wsl
@@ -2396,10 +2387,6 @@ install -Dm0644 %{SOURCE31} -t %{buildroot}%{_prefix}/share/dnf5/libdnf.conf.d/
 
 %if %{with wsl}
 %files wsl
-%config(noreplace) %{_sysconfdir}/wsl.conf
-%{_prefix}/lib/wsl-distribution.conf
-%{_sysconfdir}/wsl-distribution.conf
-%{_libexecdir}/wsl/oobe.sh
 %files identity-wsl
 %{_prefix}/lib/os-release.wsl
 %attr(0644,root,root) %{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.wsl

diff --git a/wsl-distribution.conf b/wsl-distribution.conf
deleted file mode 100644
index d071d33..0000000
--- a/wsl-distribution.conf
+++ /dev/null
@@ -1,16 +0,0 @@
-# The /etc/wsl-distribution.conf configuration file.
-#
-# Available configuration options are documented at
-# https://learn.microsoft.com/en-us/windows/wsl/build-custom-distro
-
-[oobe]
-# Command run the first time the user opens an interactive shell.
-# If the command returns non-zero, it is considered unsuccessful and the
-# user won't be able to open a shell.
-command = /usr/libexec/wsl/oobe.sh
-# Default UID for user the distribution starts with.
-defaultUid = 1000
-# Default name the distribution is registered under.
-# This is used when the user double-clicks to install, or uses
-# wsl --install --from-file ./Fedora.wsl
-defaultName = Fedora

diff --git a/wsl-oobe.sh b/wsl-oobe.sh
deleted file mode 100644
index a14b79f..0000000
--- a/wsl-oobe.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-# The Fedora WSL out of box experience script.
-#
-# This command runs the first time the user opens an interactive shell.
-#
-# A non-zero exit code indicates to WSL that setup failed.
-
-set -ueo pipefail
-
-DEFAULT_USER_ID=1000
-
-echo 'Please create a default Fedora user account. The username does not need to match your Windows username.'
-echo 'For more information visit: https://aka.ms/wslusers'
-
-if getent passwd $DEFAULT_USER_ID > /dev/null ; then
-  echo 'User account already exists, skipping creation'
-  exit 0
-fi
-
-# Prompt from the username
-read -r -p 'Enter new UNIX username: ' username
-
-# Create the user
-/usr/sbin/useradd -m -G wheel --uid $DEFAULT_USER_ID "$username"
-
-cat > /etc/sudoers.d/wsluser << EOF
-# Ensure the WSL initial user can use sudo
-$username ALL=(ALL) NOPASSWD: ALL
-EOF

diff --git a/wsl.conf b/wsl.conf
deleted file mode 100644
index 1a92e7c..0000000
--- a/wsl.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-# Refer to https://learn.microsoft.com/en-us/windows/wsl/wsl-config#wslconf
-# for the full set of configuration options.
-[boot]
-systemd=true

                 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=178635460448.1.18301089956620238817.rpms-fedora-release-f22e13a114cc@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