public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-release] f45: Remove WSL configuration files and setup script
@ 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 : 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
^ 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: Remove WSL configuration files and setup script Jeremy Cline
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox