Whitewater Foundry

View Original

Fedora Remix for WSL 37 Released

Fedora 37.0.0:

  • Upgraded to Fedora 37

  • Made it compatible with the built-in WSL SystemD
    Note: Gnome session is crashing if using WSL SystemD, if you need Gnome desktop stick with the Fedora Remix SystemD implementation until we find the issue

Upgrade Fedora Remix for WSL to 37

Today Nov 15, Fedora 37 was released

You can upgrade your existing installation of Fedora 36 with the following steps.

First, backup your installation:

wsl --export fedoraremix fedoraremix36_backup.tar.gz

Then proceed:

NOTE: DO NOT PERFORM THE UPGRADE STARTING FEDORA REMIX WITH SYSTEMD; IT WILL RUIN YOUR INSTALLATION

#Be sure that systemd is disabled
[ "$(grep -c "^systemd.*=.*true$" /etc/wsl.conf)" -ne 0 ] && sudo sed -i "s/^systemd.*=.*true$/systemd=false/" /etc/wsl.conf && wsl.exe --terminate ${WSL_DISTRO_NAME}

update.sh 
sudo dnf -y upgrade --refresh  
sudo dnf -y install dnf-plugin-system-upgrade  
sudo rpm --import https://src.fedoraproject.org/rpms/fedora-repos/raw/rawhide/f/RPM-GPG-KEY-fedora-37-primary  
sudo dnf -y install distribution-gpg-keys 
sudo dnf -y system-upgrade --allowerasing --skip-broken download --releasever=37  
sudo dnf -y system-upgrade reboot

At this point, it will raise an error, ignore it, and execute the following commands:

sudo dnf -y system-upgrade upgrade   
sudo dnf -y autoremove   
sudo dnf -y clean all   
sudo mandb  
update.sh  
cat /etc/fedora-release
exit

You can then reenable or start with SystemD if you were using it.

Enjoy it!