Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable dnf update on exit #181

Open
snibbo71 opened this issue Nov 21, 2022 · 2 comments
Open

Disable dnf update on exit #181

snibbo71 opened this issue Nov 21, 2022 · 2 comments
Assignees
Labels
bug Something isn't working fixed

Comments

@snibbo71
Copy link

Describe the bug
I suspect it's not really a bug, it's just an issue I can't seem to find the answer to...

I'd like to disable the 'dnf update' that appears to happen when trying to exit the shell. I update regularly and at a time that's convenient to me. This is almost exactly never the time I'm trying to leave the shell. How do I disable this feature please?

To Reproduce
Steps to reproduce the behavior:

  1. open up Fedora Remix for WSL in Windows Terminal
  2. perform some actions
  3. Type 'exit' to leave the shell
  4. Sometimes (not sure how to repeat) dnf update appears to be called.

Expected behavior
Expect shell to exit. Or at least show '[process terminated]' message if that's set in Windows Terminal

Basic Troubleshooting Checklist

[ X ] I have searched Google for the error message.
[ X ] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled.
[ X ] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues.
[ X ] I have searched the WLinux issues page: https://github.com/WhitewaterFoundry/WLinux/issues.
[ N/A ] I have reset WLinux: Settings->Apps->Apps & features->WLinux->Advanced Options->Reset.
[ N/A ] I have disabled and re-enabled WSL in Windows Features.
[ N/A ] I have run Windows 10 updates and restarted.

What other troubleshooting have you attempted?

Insert here:

I've tried looking in /etc for any references I can find, as well as my home directory. I found a 'check-dnf.sh' script in /etc/profile.d but this doesn't seem to be the culprit - though I may be wrong :)

Really just looking for some guidance please.

Thanks for an excellent Remix for WSL :)

P.S. This is the MS Store version, running at startup with SystemD and no window.

@crramirez crramirez self-assigned this Nov 22, 2022
@crramirez crramirez added bug Something isn't working to implement labels Nov 22, 2022
@crramirez
Copy link
Contributor

The error was fixed. You'll see it in the release tomorrow or the next day. The version is 37.0.4

@crramirez
Copy link
Contributor

You are very welcome. The behavior was in the launcher to force the installation of the scripts and systemd if the user started with systemd with a previous version. This script is no longer necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants