-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
PR: Genie for Fedora33 distro. Is there some chance to get it? #98
Comments
I'd very much like to have a dnf/yum/rpm package available for Fedora, et al., but unfortunately for me the problem is time - I'm not familiar with that packaging method or its tools, and so far, I just don't have enough of it to learn all the tools and test against all the distros that people want. I'm still hoping to find volunteer maintainers for all the non-apt package types out there! I've attached an rpm package... systemd-genie-1.32-2.x86_64.rpm.gz ...translated from the apt package using alien(1p) , which should work on Fedora in theory. If that doesn't work for you, manually copying the files from the .tar.gz package into place or using the build-it-yourself option are probably the easiest approaches for now. Good luck! |
No problem! I have genie in Fedora. |
The install on F33 can be done as follows. M<ake sure your system is up-to-date and has the needed packages $ dnf update -y
$ dnf groupinstall -y "Basic Desktop"
$ dnf install -y systemd-container daemonize To build $ sudo dnf install make dotnet-sdk-5.0 git-core
$ git clone https://github.com/arkane-systems/genie.git
$ cd genie/genie
$ make
$ sudo make install
$ sudo ln -s /usr/libexec/genie/genie /usr/sbin/genie Ater this you can start $ genie -i Which will let you wait for 180 seconds before timing out:
After this do: $ genie -s
$ sudo systemctl disable auditd
$ sudo systemctl mask systemd-modules-load Will work on a package and a specific |
@cerebrate Will create an RPM package for this. Will you re-open?
[genie]
systemd-timeout=5
did the trick to get rid of the degraded state (disabling didn't work). |
@gbraad I'd certainly like to have an RPM package available, especially if it can generalize across popular RPM-based distros. Before I action this - are you looking at creating a one-time RPM package for this, or effectively volunteering as |
A package, automated setup at fedora and hopefully can maintain it long-term (but there has been interest, so likely can find maintainers from the community too). Update: I have set up a basic copr project: https://copr.fedorainfracloud.org/coprs/gbraad/genie/ and will first enable this for Fedora 33 (and 34). Might have a look at CentOS-based installs later |
@gbraad I installed genie "cross-distro" in the following way: I downloaded the genie apt package to the Ubuntu distro and unpacked it. |
Using |
Other dependencies are |
@gbraad Great stuff! I don't think we need to reopen in this issue, but if you let me know the details when you're ready, and I'll add them to the installation README so people know where to go to get it. Or just send me a PR, either way. |
@PavelSosin-320 Impressed as I am that you got genie to work that way, I confess to being a mite horrified at the thought of having to support it, and distro differences are definitely one reason. (And while .NET is shipped by Microsoft, it's shipped as an apt package, so apt is certainly useful when it comes to managing that dependency, even if it doesn't resolve it without user intervention.) |
@cerebrate I created a I published a test version of this RPM at: Still some minor changes that can be made, but works as-is. |
[genie]
systemd-timeout=5 @gbraad, thanks for the additional info. 😄 I had to set the timeout to a minimum of 90 seconds, otherwise |
@gbraad, I now have a Gnome 3 WSL2 desktop on Fedora thanks to your superb instructions above! 🎉 See the Fedora screenshots on my comment: WhitewaterFoundry/Fedora-Remix-for-WSL#82 (comment) |
Please check with
what didn't work. Sometimes it is easy to solve, or otherwise I can mask them beforehand in an updated package |
I also compiled the |
@gbraad, this is the error I get if I use a timeout of 30 seconds for example. |
Did you install the RPM ? |
@gbraad, yes - I did install the |
@milesbuckton Can we get a |
the |
@cerebrate, this is what I get before the fail and after it works: |
what is the target you are using... |
Not really. It only happens if the timeout is less than what is "comfortable" for my PC. |
I don't know. Fedora Remix was installed via the Windows Store: Yes, the second image is after I close the tab, and reopen another tab (session). |
for me it takes about ~2s on a cold start, but I am on an SSD and a well specced machine. |
in the second tab, what is the output of |
My laptop is an Intel i9 with 32GB of RAM, and an SSD: so it shouldn't be the laptop specs. |
The second tab isn't a success either, FYI: look at the pid of systemd (69, not 1). You're still outside the bottle. Also, yes, that looks like a very minimalist startup, with maybe... 3 services running? None of which is systemd-machined, which is why |
You can manually get into the bottle with Having done that, then if you shutdown and restart WSL and genie, it should work properly. Hopefully. |
@cerebrate, this is what I got after I ran the commands. |
The second and last image look as expected: Can you do:
|
BTW @milesbuckton what is the |
Do perform the command from within the bottle (
else it will fail with the error you see. |
For me it would show the same if I start it:
might have a look at this as I am not sure why it would fail. |
BTW, the reason why
Which states: |
I am not an expert for this, but I believe |
I see:
while:
Anyone any ideas around this? |
It's getting a bit beyond my knowledge, I'm afraid, but what does
but hopefully any problems systemd is having with the socket itself should show up there. |
I am having the same issue as the other user, and unfortunately that would not seem to be providing useful information: Feb 26 23:26:27 TRISTAN-MACBOOKPRO-wsl-wsl systemd[1]: Listening on D-Bus System Message Bus Socket. |
@tjehlar I currently use Fedora34 distro installed following Fedora magazine recommendations with genie 1.35.Everything looks OK except degraded status due to systemd-oomd.service startup failure. But the last looks as known Fedora34 issue. Fedora bug 1926373.. Podman 3.0 still has some problem in the rootless mode. |
@tjehlar what is the usecase that the |
I have Fedora33 WSL distro installed on my machine with all genie dependencies, i.e
dotnet-sdk 5.0,
unshare from util-linux 2.36.1
daemonize, version 1.7.7.
systemctl --version
systemd 246 (v246.7-2.fc33)
Does any chance to have genie systemd installable using DNF as I have for Ubuntu Groovy using apt-get?
I see a merged pull requested that says that it already works for "remix" version.
It will be very helpful because Podman 3.0 is just released for Fedora33 but can't work without its group manager - systemd
The text was updated successfully, but these errors were encountered: